@@ -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 )
@@ -152,26 +153,26 @@ list-author-emails:
152
153
@git log --format=' %aN,%aE' | sort -u | grep -v ' root'
153
154
154
155
155
- mypy : ${PYSOURCES}
156
- rm -Rf typeshed/2.7 /ruamel/yaml
156
+ mypy2 : ${PYSOURCES}
157
+ rm -Rf typeshed/2and3 /ruamel/yaml
157
158
ln -s $(shell python -c 'from __future__ import print_function; import ruamel.yaml; import os.path; print(os.path.dirname(ruamel.yaml.__file__) )' ) \
158
- typeshed/2.7 /ruamel/yaml
159
- rm -Rf typeshed/2.7 /schema_salad
159
+ typeshed/2and3 /ruamel/yaml
160
+ rm -Rf typeshed/2and3 /schema_salad
160
161
ln -s $(shell python -c 'from __future__ import print_function; import schema_salad; import os.path; print(os.path.dirname(schema_salad.__file__) )' ) \
161
- typeshed/2.7 /schema_salad
162
- MYPYPATH=typeshed/2.7 mypy --py2 --disallow-untyped-calls \
163
- --warn-redundant-casts --warn-unused-ignores --fast-parser \
162
+ typeshed/2and3 /schema_salad
163
+ MYPYPATH=$MYPYPATH : typeshed/2.7:typeshed/2and3 mypy --py2 --disallow-untyped-calls \
164
+ --warn-redundant-casts \
164
165
cwltool
165
166
166
167
mypy3 : ${PYSOURCES}
167
- rm -Rf typeshed/3 /ruamel/yaml
168
+ rm -Rf typeshed/2and3 /ruamel/yaml
168
169
ln -s $(shell python3 -c 'from __future__ import print_function; import ruamel.yaml; import os.path; print(os.path.dirname(ruamel.yaml.__file__) )' ) \
169
- typeshed/3 /ruamel/yaml
170
- rm -Rf typeshed/3 /schema_salad
170
+ typeshed/2and3 /ruamel/yaml
171
+ rm -Rf typeshed/2and3 /schema_salad
171
172
ln -s $(shell python3 -c 'from __future__ import print_function; import schema_salad; import os.path; print(os.path.dirname(schema_salad.__file__) )' ) \
172
- typeshed/3 /schema_salad
173
- MYPYPATH=typeshed/3 mypy --disallow-untyped-calls \
174
- --warn-redundant-casts --warn-unused-ignores --fast-parser \
173
+ typeshed/2and3 /schema_salad
174
+ MYPYPATH=$MYPYPATH : typeshed/3:typeshed/2and3 mypy --disallow-untyped-calls \
175
+ --warn-redundant-casts \
175
176
cwltool
176
177
177
178
FORCE :
0 commit comments