File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737 - id : pyupgrade
3838 args : [--py3-plus]
3939- repo : https://github.com/pre-commit/mirrors-mypy
40- rev : v0.761
40+ rev : v0.761 # NOTE: keep this in sync with setup.py.
4141 hooks :
4242 - id : mypy
4343 files : ^(src/|testing/)
Original file line number Diff line number Diff line change @@ -29,7 +29,10 @@ def main():
2929 "nose" ,
3030 "requests" ,
3131 "xmlschema" ,
32- ]
32+ ],
33+ "checkqa-mypy" : [
34+ "mypy==v0.761" , # keep this in sync with .pre-commit-config.yaml.
35+ ],
3336 },
3437 install_requires = INSTALL_REQUIRES ,
3538 )
Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ basepython = python3
5555deps = pre-commit>=1.11.0
5656commands = pre-commit run --all-files --show-diff-on-failure {posargs:}
5757
58+ [testenv:mypy]
59+ extras = checkqa-mypy, testing
60+ commands = mypy {posargs:src testing}
61+
5862[testenv:docs]
5963basepython = python3
6064usedevelop = True
You can’t perform that action at this time.
0 commit comments