Skip to content

Commit 508f4e0

Browse files
committed
add mypy coverage task
get mypy plugin to be able to have coverage Change-Id: I8c2d57bb97bd522b83d20a0f97576c7ae9ea71a5
1 parent c2aa65e commit 508f4e0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tox.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,22 @@ deps=
148148
importlib_metadata; python_version < '3.8'
149149
mypy
150150
patch==1.*
151+
151152
commands =
152153
pytest -m mypy {posargs}
153154

155+
[testenv:mypy-cov]
156+
157+
deps=
158+
{[testenv:mypy]deps}
159+
pytest-cov
160+
161+
commands =
162+
pytest -m mypy {env:COVERAGE} {posargs}
163+
164+
setenv=
165+
COVERAGE={[testenv]cov_args}
166+
154167
# thanks to https://julien.danjou.info/the-best-flake8-extensions/
155168
[testenv:lint]
156169
basepython = python3

0 commit comments

Comments
 (0)