@@ -26,8 +26,8 @@ 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 pep257 flake8 pytest isort mock
30
- DEBDEVPKGS =pep8 python-autopep8 pylint python-coverage pep257 sloccount python-flake8 python-mock
29
+ DEVPKGS =pep8 diff_cover autopep8 pylint coverage pydocstyle flake8 pytest isort mock
30
+ DEBDEVPKGS =pep8 python-autopep8 pylint python-coverage pydocstyle sloccount python-flake8 python-mock
31
31
VERSION =1.0.$(shell date +% Y% m% d% H% M% S --date=`git log --first-parent \
32
32
--max-count=1 --format=format:% cI`)
33
33
mkfile_dir := $(dir $(abspath $(lastword $(MAKEFILE_LIST ) ) ) )
@@ -80,15 +80,16 @@ pep8_report.txt: $(PYSOURCES)
80
80
diff_pep8_report : pep8_report.txt
81
81
diff-quality --violations=pep8 pep8_report.txt
82
82
83
- # # pep257 : check Python code style
84
- pep257 : $(PYSOURCES )
85
- pep257 --ignore=D100,D101,D102,D103 $^ || true
83
+ pep257 : pydocstyle
84
+ # # pydocstyle : check Python code style
85
+ pydocstyle : $(PYSOURCES )
86
+ pydocstyle --ignore=D100,D101,D102,D103 $^ || true
86
87
87
- pep257_report .txt : $(PYSOURCES )
88
- pep257 setup.py $^ > pep257_report .txt 2>&1 || true
88
+ pydocstyle_report .txt : $(PYSOURCES )
89
+ pydocstyle setup.py $^ > pydocstyle_report .txt 2>&1 || true
89
90
90
- diff_pep257_report : pep257_report .txt
91
- diff-quality --violations=pep8 pep257_report.txt
91
+ diff_pydocstyle_report : pydocstyle_report .txt
92
+ diff-quality --violations=pep8 $^
92
93
93
94
# # autopep8 : fix most Python code indentation and formatting
94
95
autopep8 : $(PYSOURCES )
0 commit comments