mypy: Add to tox

This commit is contained in:
Florian Bruhin 2018-11-22 08:30:28 +01:00
parent 2152081d82
commit 85b2fb513b
3 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,5 @@
# This file is automatically generated by scripts/dev/recompile_requirements.py
mypy==0.641
mypy-extensions==0.4.1
typed-ast==1.1.0

View File

@ -0,0 +1 @@
mypy

10
tox.ini
View File

@ -188,3 +188,13 @@ deps =
whitelist_externals = eslint
changedir = {toxinidir}/qutebrowser/javascript
commands = eslint --color --report-unused-disable-directives .
[testenv:mypy]
basepython = {env:PYTHON:python3}
passenv =
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/misc/requirements/requirements-mypy.txt
commands =
#{envpython} -m mypy --ignore-missing-imports --allow-untyped-decorators --allow-subclassing-any --strict src
{envpython} -m mypy qutebrowser