tox: add mypy toxenv
This is different from what pre-commit (in "linting") runs in that it uses stubs from (test) dependencies. It would make sense to run this on CI additionally (since there is no "pre-commit --skip mypy", and a separate config is not worth it). But currently it triggers a false positive though anyway (https://github.com/erikrose/more-itertools/pull/374).
This commit is contained in:
parent
8eec42f040
commit
0e70acab79
|
@ -37,7 +37,7 @@ repos:
|
|||
- id: pyupgrade
|
||||
args: [--py3-plus]
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: v0.761
|
||||
rev: v0.761 # NOTE: keep this in sync with setup.py.
|
||||
hooks:
|
||||
- id: mypy
|
||||
files: ^(src/|testing/)
|
||||
|
|
5
setup.py
5
setup.py
|
@ -29,7 +29,10 @@ def main():
|
|||
"nose",
|
||||
"requests",
|
||||
"xmlschema",
|
||||
]
|
||||
],
|
||||
"checkqa-mypy": [
|
||||
"mypy==v0.761", # keep this in sync with .pre-commit-config.yaml.
|
||||
],
|
||||
},
|
||||
install_requires=INSTALL_REQUIRES,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue