Add mypy checks as separate tox environment.

This commit is contained in:
Jason R. Coombs 2020-09-11 15:38:04 -04:00
parent fba386cb8e
commit ee9d9d7984
2 changed files with 9 additions and 0 deletions

2
mypy.ini Normal file
View File

@ -0,0 +1,2 @@
[mypy]
ignore_missing_imports = True

View File

@ -108,6 +108,13 @@ commands =
# file. See pyproject.toml for legal <change type> values.
python -m towncrier.check --pyproject towncrier.pyproject.toml
[testenv:typechecks]
skip_install = True
deps = mypy
commands = mypy src
[testenv:draftnews]
passenv = TAHOE_LAFS_* PIP_* SUBUNITREPORTER_* USERPROFILE HOMEDRIVE HOMEPATH
# see comment in [testenv] about "certifi"