summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tox.ini13
1 files changed, 13 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 444e3fb35..df7787db0 100644
--- a/tox.ini
+++ b/tox.ini
@@ -148,9 +148,22 @@ deps=
importlib_metadata; python_version < '3.8'
mypy
patch==1.*
+
commands =
pytest -m mypy {posargs}
+[testenv:mypy-cov]
+
+deps=
+ {[testenv:mypy]deps}
+ pytest-cov
+
+commands =
+ pytest -m mypy {env:COVERAGE} {posargs}
+
+setenv=
+ COVERAGE={[testenv]cov_args}
+
# thanks to https://julien.danjou.info/the-best-flake8-extensions/
[testenv:lint]
basepython = python3