tox: add mypy-diff testenv
This commit is contained in:
parent
19f66cb824
commit
2406076611
9
tox.ini
9
tox.ini
|
@ -59,6 +59,15 @@ commands = pre-commit run --all-files --show-diff-on-failure {posargs:}
|
||||||
extras = checkqa-mypy, testing
|
extras = checkqa-mypy, testing
|
||||||
commands = mypy {posargs:src 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]
|
[testenv:docs]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
|
|
Loading…
Reference in New Issue