Skip to content

Commit d2c73e9

Browse files
authored
Merge branch 'master' into feature-js-console-output
2 parents 5f5fcf5 + 2971fce commit d2c73e9

File tree

281 files changed

+5280
-3959
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

281 files changed

+5280
-3959
lines changed

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,18 @@ eggs/
1515
*~
1616
\#*\#
1717
.desktop
18+
19+
# virtualenv
20+
venv/
21+
venv3/
22+
23+
# pycharm
24+
.idea/
25+
26+
# typshed repo
27+
typeshed/2and3/schema_salad
28+
typeshed/2and3/ruamel/yaml
29+
30+
31+
#mypy
32+
.mypy_cache/

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ sudo: false
22
language: python
33
python:
44
- 2.7
5-
# - 3.4
5+
- 3.3
6+
- 3.4
67
- 3.5
7-
# - 3.6
8+
- 3.6
89
os:
910
- linux
10-
1111
install:
1212
- pip install tox-travis
1313
script: tox
14-
notifications:
15-
email: false
1614
branches:
1715
only:
1816
- master
17+
notifications:
18+
email: false

Makefile

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ MODULE=cwltool
2626
# `SHELL=bash` doesn't work for some, so don't use BASH-isms like
2727
# `[[` conditional expressions.
2828
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
3131
VERSION=1.0.$(shell date +%Y%m%d%H%M%S --date=`git log --first-parent \
3232
--max-count=1 --format=format:%cI`)
3333
mkfile_dir := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
@@ -80,15 +80,16 @@ pep8_report.txt: $(PYSOURCES)
8080
diff_pep8_report: pep8_report.txt
8181
diff-quality --violations=pep8 pep8_report.txt
8282

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
8687

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
8990

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 $^
9293

9394
## autopep8 : fix most Python code indentation and formatting
9495
autopep8: $(PYSOURCES)
@@ -152,26 +153,26 @@ list-author-emails:
152153
@git log --format='%aN,%aE' | sort -u | grep -v 'root'
153154

154155

155-
mypy: ${PYSOURCES}
156-
rm -Rf typeshed/2.7/ruamel/yaml
156+
mypy2: ${PYSOURCES}
157+
rm -Rf typeshed/2and3/ruamel/yaml
157158
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
160161
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 \
164165
cwltool
165166

166167
mypy3: ${PYSOURCES}
167-
rm -Rf typeshed/3/ruamel/yaml
168+
rm -Rf typeshed/2and3/ruamel/yaml
168169
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
171172
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 \
175176
cwltool
176177

177178
FORCE:

0 commit comments

Comments
 (0)