Skip to content

Commit 77f3c17

Browse files
committed
turn off travis py3 checking for now
Added mpyp3 Makefile target
1 parent dac9543 commit 77f3c17

File tree

4 files changed

+25
-6
lines changed

4 files changed

+25
-6
lines changed

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,15 @@ mypy: ${PYSOURCES}
158158
--warn-redundant-casts --warn-unused-ignores --fast-parser \
159159
cwltool
160160

161+
mypy3: ${PYSOURCES}
162+
rm -Rf typeshed/3/ruamel/yaml
163+
ln -s $(shell python3 -c 'from __future__ import print_function; import ruamel.yaml; import os.path; print(os.path.dirname(ruamel.yaml.__file__))') \
164+
typeshed/3/ruamel/yaml
165+
rm -Rf typeshed/3/schema_salad
166+
ln -s $(shell python3 -c 'from __future__ import print_function; import schema_salad; import os.path; print(os.path.dirname(schema_salad.__file__))') \
167+
typeshed/3/schema_salad
168+
MYPYPATH=typeshed/3 mypy --disallow-untyped-calls \
169+
--warn-redundant-casts --warn-unused-ignores --fast-parser \
170+
cwltool
171+
161172
FORCE:

cwltool/expression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def jshead(engineConfig, rootvars):
2525
segment_re = re.compile(segments, flags=re.UNICODE)
2626
param_re = re.compile(r"\((%s)%s*\)$" % (seg_symbol, segments), flags=re.UNICODE)
2727

28-
JSON = Union[Dict[Any, Any], List[Any], Text, int, long, float, bool, None]
28+
JSON = Union[Dict[Any, Any], List[Any], Text, int, float, bool, None]
2929

3030

3131
class SubstitutionError(Exception):

cwltool/sandboxjs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@
1010
from pkg_resources import resource_stream
1111
from typing import Any, Dict, List, Mapping, Text, Union
1212

13-
1413
class JavascriptException(Exception):
1514
pass
1615

1716

1817
_logger = logging.getLogger("cwltool")
1918

20-
JSON = Union[Dict[Text, Any], List[Any], Text, int, long, float, bool, None]
19+
JSON = Union[Dict[Text, Any], List[Any], Text, int, float, bool, None]
2120

2221
localdata = threading.local()
2322

tox.ini

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
2-
#envlist = py35-lint,py34-lint,py33-lint,py27-lint,py35-unit,py34-unit,py33-unit,py27-unit
3-
envlist = py27-lint, py27-unit, py27-pipconflictchecker, py35-mypy, py36-lint, py35-lint, py34-lint, py33-lint
2+
#envlist = py27-lint, py27-unit, py27-pipconflictchecker, py33-lint, py33-unit, py34-lint, py34-unit, py35-py2_mypy, py35-mypy, py35-lint, py35-unit, py36-lint, py36-unit # only when py3 compat is done
3+
envlist = py27-lint, py27-unit, py27-pipconflictchecker, py36-lint, py35-lint, py34-lint, py33-lint
44
skipsdist = True
55

66
[tox:travis]
@@ -10,14 +10,23 @@ skipsdist = True
1010
[testenv]
1111
deps = -rrequirements.txt
1212

13-
[testenv:py35-mypy]
13+
[testenv:py35-py2_mypy]
1414
commands = make mypy
1515
whitelist_externals = make
1616
deps =
1717
mypy>=0.470
1818
typed-ast==0.6.3
1919
-rrequirements.txt
2020

21+
[testenv:py35-mypy]
22+
commands = make mypy3
23+
whitelist_externals = make
24+
deps =
25+
mypy>=0.470
26+
typed-ast==0.6.3
27+
-rrequirements.txt
28+
29+
2130
[testenv:py36-lint]
2231
commands = flake8 cwltool setup.py
2332
whitelist_externals = flake8

0 commit comments

Comments
 (0)