IMO it's not a good practice to overload a tox rule with multiple
different test tools. It forces the tools to share the same virtualenvs
and makes it impossible to run the tools individually. A separate mypy
env also better matches the other tox.ini files in the ceph tree.
Since the new 'mypy' env is in the default env list it will continue
to get run automatically when no specific envs are selected.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit
ff39f87701ba5935902f2a6c67d7ad178bddc5e0)
[tox]
-envlist = py3, lint
+envlist = py3, mypy, lint
skip_missing_interpreters = true
[testenv:py3]
pytest {posargs}
mypy --config-file=../mypy.ini -p ceph
+[testenv:mypy]
+deps=
+ -rrequirements.txt
+ -c{toxinidir}/../mypy-constrains.txt
+commands=
+ mypy --config-file=../mypy.ini -p ceph
+
[tool:pytest]
norecursedirs = .* _* virtualenv