15
15
#
16
16
17
17
18
- # make pep8 to check for basic Python code compliance
18
+ # make pycodestyle to check for basic Python code compliance
19
19
# make autopep8 to fix most pep8 errors
20
20
# make pylint to check Python code for enhanced compliance including naming
21
21
# and documentation
@@ -26,7 +26,7 @@ MODULE=cwltool
26
26
# `SHELL=bash` doesn't work for some, so don't use BASH-isms like
27
27
# `[[` conditional expressions.
28
28
PYSOURCES =$(wildcard ${MODULE}/** .py tests/* .py) setup.py
29
- DEVPKGS =pep8 diff_cover autopep8 pylint coverage pydocstyle flake8 pytest isort mock
29
+ DEVPKGS =pycodestyle diff_cover autopep8 pylint coverage pydocstyle flake8 pytest isort mock
30
30
DEBDEVPKGS =pep8 python-autopep8 pylint python-coverage pydocstyle sloccount \
31
31
python-flake8 python-mock shellcheck
32
32
VERSION =1.0.$(shell date +% Y% m% d% H% M% S --utc --date=`git log --first-parent \
@@ -71,15 +71,16 @@ clean: FORCE
71
71
sort_imports :
72
72
isort ${MODULE} /* .py tests/* .py setup.py
73
73
74
- # # pep8 : check Python code style
75
- pep8 : $(PYSOURCES )
76
- pep8 --exclude=_version.py --show-source --show-pep8 $^ || true
74
+ pep8 : pycodestyle
75
+ # # pycodestyle : check Python code style
76
+ pycodestyle : $(PYSOURCES )
77
+ pycodestyle --exclude=_version.py --show-source --show-pep8 $^ || true
77
78
78
- pep8_report .txt : $(PYSOURCES )
79
- pep8 --exclude=_version.py $^ > pep8_report.txt || true
79
+ pycodestyle_report .txt : $(PYSOURCES )
80
+ pycodestyle --exclude=_version.py $^ > $@ || true
80
81
81
- diff_pep8_report : pep8_report .txt
82
- diff-quality --violations=pep8 pep8_report.txt
82
+ diff_pycodestyle_report : pycodestyle_report .txt
83
+ diff-quality --violations=pycodestyle $^
83
84
84
85
pep257 : pydocstyle
85
86
# # pydocstyle : check Python code style
0 commit comments