commit
4a265ba38b
|
@ -37,7 +37,7 @@ repos:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: [--py3-plus]
|
args: [--py3-plus]
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
rev: v0.761
|
rev: v0.761 # NOTE: keep this in sync with setup.py.
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
files: ^(src/|testing/)
|
files: ^(src/|testing/)
|
||||||
|
|
5
setup.py
5
setup.py
|
@ -29,7 +29,10 @@ def main():
|
||||||
"nose",
|
"nose",
|
||||||
"requests",
|
"requests",
|
||||||
"xmlschema",
|
"xmlschema",
|
||||||
]
|
],
|
||||||
|
"checkqa-mypy": [
|
||||||
|
"mypy==v0.761", # keep this in sync with .pre-commit-config.yaml.
|
||||||
|
],
|
||||||
},
|
},
|
||||||
install_requires=INSTALL_REQUIRES,
|
install_requires=INSTALL_REQUIRES,
|
||||||
)
|
)
|
||||||
|
|
4
tox.ini
4
tox.ini
|
@ -55,6 +55,10 @@ basepython = python3
|
||||||
deps = pre-commit>=1.11.0
|
deps = pre-commit>=1.11.0
|
||||||
commands = pre-commit run --all-files --show-diff-on-failure {posargs:}
|
commands = pre-commit run --all-files --show-diff-on-failure {posargs:}
|
||||||
|
|
||||||
|
[testenv:mypy]
|
||||||
|
extras = checkqa-mypy, testing
|
||||||
|
commands = mypy {posargs:src testing}
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
|
|
Loading…
Reference in New Issue