Skip to content

Commit f9bed82

Browse files
authored
Merge pull request #6515 from blueyed/tox-mypy-diff
tox: add mypy-diff testenv
2 parents 44eb1f5 + 2406076 commit f9bed82

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tox.ini

+9
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ commands = pre-commit run --all-files --show-diff-on-failure {posargs:}
5959
extras = checkqa-mypy, testing
6060
commands = mypy {posargs:src testing}
6161

62+
[testenv:mypy-diff]
63+
extras = checkqa-mypy, testing
64+
deps =
65+
lxml
66+
diff-cover
67+
commands =
68+
-mypy --cobertura-xml-report {envtmpdir} {posargs:src testing}
69+
diff-cover --fail-under=100 --compare-branch={env:DIFF_BRANCH:origin/{env:GITHUB_BASE_REF:master}} {envtmpdir}/cobertura.xml
70+
6271
[testenv:docs]
6372
basepython = python3
6473
usedevelop = True

0 commit comments

Comments
 (0)