-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
29 lines (23 loc) · 818 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#
# Project: weechat-notify-send
# Copyright: (c) 2015 by Petr Zemek <s3rvac@gmail.com> and contributors
# License: MIT, see the LICENSE file for more details
#
# A GNU Makefile for the project.
#
.PHONY: help clean lint tests tests-coverage
help:
@echo "Use \`make <target>', where <target> is one of the following:"
@echo " clean - remove all generated files"
@echo " lint - check code style with flake8"
@echo " tests - run tests"
@echo " tests-coverage - obtain test coverage"
clean:
@find . -name '__pycache__' -exec rm -rf {} +
@find . -name '*.py[co]' -exec rm -f {} +
lint:
@flake8 --ignore=E402,W504 --max-line-length=100 notify_send.py notify_send_tests.py
tests:
@pytest notify_send_tests.py
tests-coverage:
@pytest --cov=notify_send notify_send_tests.py