Compare commits

...

3 Commits

Author SHA1 Message Date
Erica Portnoy
4b7f152223 pin mypy dependencies 2018-04-12 15:21:44 -07:00
Erica Portnoy
0dcac0768b use any python3 with mypy 2018-04-12 15:14:57 -07:00
Erica Portnoy
66169eae5c get mypy tox env running in the current setup 2018-04-12 14:53:26 -07:00
4 changed files with 11 additions and 2 deletions

1
.gitignore vendored
View File

@@ -38,6 +38,7 @@ tests/letstest/venv/
# pytest cache # pytest cache
.cache .cache
.mypy_cache/
# docker files # docker files
.docker .docker

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,
}, },

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

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}