forked from awslabs/awsprocesscreds
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (20 loc) · 694 Bytes
/
Makefile
File metadata and controls
26 lines (20 loc) · 694 Bytes
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
TESTS=tests/unit tests/functional
MODULE=awsprocesscreds/
check:
###### FLAKE8 #####
# No unused imports, no undefined vars
flake8 --ignore=E731,W503 --exclude compat.py --max-complexity 10 $(MODULE)
flake8 tests/unit/ tests/functional/ tests/integration/
# Proper docstring conventions according to pep257
pydocstyle --add-ignore=D100,D101,D102,D103,D104,D105,D204,D301 $(MODULE)
pylint:
pylint --rcfile .pylintrc $(MODULE)
test:
py.test -v $(TESTS)
coverage:
py.test --cov $(MODULE) --cov-report term-missing $(TESTS)
htmlcov:
py.test --cov $(MODULE) --cov-report html $(TESTS)
rm -rf /tmp/htmlcov && mv htmlcov /tmp/
open /tmp/htmlcov/index.html
prcheck: check pylint test