Get mypy tox env running in the current setup (#5861)

* get mypy tox env running in the current setup

* use any python3 with mypy

* pin mypy dependencies
This commit is contained in:
ohemorange
2018-04-12 15:47:39 -07:00
committed by Brad Warren
parent 6b29d159a2
commit 2d31598484
4 changed files with 11 additions and 2 deletions
+1
View File
@@ -38,6 +38,7 @@ tests/letstest/venv/
# pytest cache # pytest cache
.cache .cache
.mypy_cache/
# docker files # docker files
.docker .docker
+5
View File
@@ -65,6 +65,10 @@ dev_extras = [
'wheel', 'wheel',
] ]
dev3_extras = [
'mypy',
]
docs_extras = [ docs_extras = [
'repoze.sphinx.autointerface', 'repoze.sphinx.autointerface',
# autodoc_member_order = 'bysource', autodoc_default_flags, and #4686 # autodoc_member_order = 'bysource', autodoc_default_flags, and #4686
@@ -110,6 +114,7 @@ setup(
install_requires=install_requires, install_requires=install_requires,
extras_require={ extras_require={
'dev': dev_extras, 'dev': dev_extras,
'dev3': dev3_extras,
'docs': docs_extras, 'docs': docs_extras,
}, },
+3
View File
@@ -30,6 +30,7 @@ josepy==1.0.1
logger==1.4 logger==1.4
logilab-common==1.4.1 logilab-common==1.4.1
MarkupSafe==1.0 MarkupSafe==1.0
mypy==0.580
ndg-httpsclient==0.3.2 ndg-httpsclient==0.3.2
oauth2client==2.0.0 oauth2client==2.0.0
pathlib2==2.3.0 pathlib2==2.3.0
@@ -66,6 +67,8 @@ tox==2.9.1
tqdm==4.19.4 tqdm==4.19.4
traitlets==4.3.2 traitlets==4.3.2
twine==1.9.1 twine==1.9.1
typed-ast==1.1.0
typing==3.6.4
uritemplate==0.6 uritemplate==0.6
virtualenv==15.1.0 virtualenv==15.1.0
wcwidth==0.1.7 wcwidth==0.1.7
+2 -2
View File
@@ -136,9 +136,9 @@ commands =
pylint --reports=n --rcfile=.pylintrc {[base]source_paths} pylint --reports=n --rcfile=.pylintrc {[base]source_paths}
[testenv:mypy] [testenv:mypy]
basepython = python3.4 basepython = python3
commands = commands =
{[base]pip_install} mypy {[base]pip_install} .[dev3]
{[base]install_packages} {[base]install_packages}
mypy --py2 --ignore-missing-imports {[base]source_paths} mypy --py2 --ignore-missing-imports {[base]source_paths}