File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 37
37
- id : pyupgrade
38
38
args : [--py3-plus]
39
39
- repo : https://github.com/pre-commit/mirrors-mypy
40
- rev : v0.761
40
+ rev : v0.761 # NOTE: keep this in sync with setup.py.
41
41
hooks :
42
42
- id : mypy
43
43
files : ^(src/|testing/)
Original file line number Diff line number Diff line change @@ -29,7 +29,10 @@ def main():
29
29
"nose" ,
30
30
"requests" ,
31
31
"xmlschema" ,
32
- ]
32
+ ],
33
+ "checkqa-mypy" : [
34
+ "mypy==v0.761" , # keep this in sync with .pre-commit-config.yaml.
35
+ ],
33
36
},
34
37
install_requires = INSTALL_REQUIRES ,
35
38
)
Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ basepython = python3
55
55
deps = pre-commit>=1.11.0
56
56
commands = pre-commit run --all-files --show-diff-on-failure {posargs:}
57
57
58
+ [testenv:mypy]
59
+ extras = checkqa-mypy, testing
60
+ commands = mypy {posargs:src testing}
61
+
58
62
[testenv:docs]
59
63
basepython = python3
60
64
usedevelop = True
You can’t perform that action at this time.
0 commit comments