summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2020-01-17 06:26:53 +0100
committerDaniel Hahler <git@thequod.de>2020-01-20 13:42:07 +0100
commit2406076611ce743598bda2807f11b7f9b009ea87 (patch)
tree77ff2e16dc00be23f673c6849252b0a965407d16 /tox.ini
parent19f66cb8248901ca21d68d8dd0170e5df013e682 (diff)
downloadpytest-2406076611ce743598bda2807f11b7f9b009ea87.tar.gz
tox: add mypy-diff testenv
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini9
1 files changed, 9 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index cf50945fb..91c50ecec 100644
--- a/tox.ini
+++ b/tox.ini
@@ -59,6 +59,15 @@ commands = pre-commit run --all-files --show-diff-on-failure {posargs:}
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