-
Notifications
You must be signed in to change notification settings - Fork 777
/
Makefile
46 lines (42 loc) · 1002 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Eventually I'll add:
# py.test --cov awsshell --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,
# follow pep8, and max cyclomatic complexity of 15.
# I'd eventually like to lower this down to < 10.
flake8 --ignore=E731,W503 --exclude awsshell/compat.py --max-complexity 15 awsshell/*.py
#
#
##### DOC8 ######
# Correct rst formatting for docstrings
#
##
doc8 awsshell/*.py
#
#
#
# Proper docstring conventions according to pep257
#
#
pep257 --add-ignore=D100,D101,D102,D103,D104,D105,D204
#
#
#
###### PYLINT ERRORS ONLY ######
#
#
#
pylint --rcfile .pylintrc -E awsshell
test:
python scripts/ci/run-tests
pylint:
###### PYLINT ######
# Python linter. This will generally not have clean output.
# So you'll need to manually verify this output.
#
#
pylint --rcfile .pylintrc awsshell
coverage:
py.test --cov awsshell --cov-report term-missing tests/