Skip to content

Commit 236b042

Browse files
committed
make mypy invocation py3 compat
1 parent 61636e4 commit 236b042

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ list-author-emails:
171171

172172
mypy: ${PYSOURCES}
173173
rm -Rf typeshed/2.7/ruamel/yaml
174-
ln -s $(shell python -c 'import ruamel.yaml; import os.path; print os.path.dirname(ruamel.yaml.__file__)') \
174+
ln -s $(shell python -c 'from __future__ import print_function; import ruamel.yaml; import os.path; print(os.path.dirname(ruamel.yaml.__file__))') \
175175
typeshed/2.7/ruamel/
176176
MYPYPATH=typeshed/2.7 mypy --py2 --disallow-untyped-calls \
177177
--fast-parser --warn-redundant-casts --warn-unused-ignores \

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ whitelist_externals = make
1616
deps =
1717
mypy-lang>=0.4
1818
typed-ast
19+
-rrequirements.txt
1920

2021
[testenv:py35-lint]
2122
commands = flake8 schema_salad setup.py

0 commit comments

Comments
 (0)