Merge pull request #7961 from bluetech/rm-checkqa-mypy

tox: remove checkqa-mypy environment
This commit is contained in:
Ran Benita 2020-10-29 17:25:51 +02:00 committed by GitHub
commit 65dfa98877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 16 deletions

View File

@ -49,7 +49,7 @@ repos:
hooks:
- id: python-use-type-annotations
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.790 # NOTE: keep this in sync with setup.cfg.
rev: v0.790
hooks:
- id: mypy
files: ^(src/|testing/)

View File

@ -62,8 +62,6 @@ console_scripts =
py.test=pytest:console_main
[options.extras_require]
checkqa-mypy =
mypy==0.790
testing =
argcomplete
hypothesis>=3.56

13
tox.ini
View File

@ -59,19 +59,6 @@ basepython = python3
deps = pre-commit>=1.11.0
commands = pre-commit run --all-files --show-diff-on-failure {posargs:}
[testenv:mypy]
extras = checkqa-mypy, testing
commands = mypy {posargs:src testing}
[testenv:mypy-diff]
extras = checkqa-mypy, testing
deps =
lxml
diff-cover
commands =
-mypy --cobertura-xml-report {envtmpdir} {posargs:src testing}
diff-cover --fail-under=100 --compare-branch={env:DIFF_BRANCH:origin/{env:GITHUB_BASE_REF:master}} {envtmpdir}/cobertura.xml
[testenv:docs]
basepython = python3
usedevelop = True