forked from aws/chalice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (49 loc) · 1.19 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Eventually I'll add:
# py.test --cov chalice --cov-report term-missing --cov-fail-under 95 tests/
# which will fail if tests are under 95%
check:
###### FLAKE8 #####
# No unused imports, no undefined vars,
# I'd eventually like to lower this down to < 10.
flake8 --ignore=E731,W503 --exclude chalice/__init__.py --max-complexity 15 chalice/
#
#
# Basic error checking in test code
pyflakes tests/unit/ tests/functional/
##### DOC8 ######
# Correct rst formatting for docstrings
#
##
doc8 docs/source
#
#
#
# Proper docstring conventions according to pep257
#
#
pep257 --add-ignore=D100,D101,D102,D103,D104,D105,D204 chalice/
#
#
#
###### PYLINT ERRORS ONLY ######
#
#
#
pylint --rcfile .pylintrc -E chalice
pylint:
###### PYLINT ######
# Python linter. This will generally not have clean output.
# So you'll need to manually verify this output.
#
#
pylint --rcfile .pylintrc chalice
test:
py.test -v tests/unit/ tests/functional/
typecheck:
mypy --py2 --silent-import -p chalice
coverage:
py.test --cov chalice --cov-report term-missing tests/
htmlcov:
py.test --cov chalice --cov-report html tests/
rm -rf /tmp/htmlcov && mv htmlcov /tmp/
open /tmp/htmlcov/index.html