From: Mike Bayer Date: Sat, 9 Apr 2022 15:15:29 +0000 (-0400) Subject: add mypy coverage task X-Git-Tag: rel_2_0_0b1~362 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=508f4e0c36969b97f58b6f1b227391330d68e272;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git add mypy coverage task get mypy plugin to be able to have coverage Change-Id: I8c2d57bb97bd522b83d20a0f97576c7ae9ea71a5 --- diff --git a/tox.ini b/tox.ini index 444e3fb35d..df7787db04 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