forked from litl/backoff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (21 loc) · 883 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
.PHONY: all pep8 pyflakes clean test check docs
all:
@echo 'pep8 check pep8 compliance'
@echo 'pyflakes check for unused imports (requires pyflakes)'
@echo 'clean cleanup the source tree'
@echo 'test run the unit tests'
@echo 'check make sure you are ready to commit'
@echo 'docs generate README.md from module docstring'
pep8:
@pep8 backoff.py backoff_tests.py
pyflakes:
@pyflakes backoff.py backoff_tests.py
clean:
@find . -name "*.pyc" -delete
@find . -name "__pycache__" -delete
test: clean
@PYTHONPATH=. py.test --cov-report term-missing --cov backoff.py backoff_tests.py
check: pep8 pyflakes test
@coverage report | grep 100% >/dev/null || { echo 'Unit tests coverage is incomplete.'; exit 1; }
docs:
@python -c 'import backoff ; print "# backoff" ; print backoff.__doc__' > README.md