From: John Mulligan Date: Mon, 18 Mar 2024 20:16:05 +0000 (-0400) Subject: pybind/mgr: fix mypy env to allow use with >1 python version X-Git-Tag: v20.0.0~2281^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=928c54683e17946df23aed4ecb3b0bc9c7c60c9c;p=ceph.git pybind/mgr: fix mypy env to allow use with >1 python version tox supports automatically running tools with different python versions if you name your envs properly. Continue to permit the use of `mypy` as an env (as the default) but also allow a selection of python versions like `py38-mypy`. Signed-off-by: John Mulligan --- diff --git a/src/pybind/mgr/tox.ini b/src/pybind/mgr/tox.ini index 13aae3820a23..62f3ec07ca80 100644 --- a/src/pybind/mgr/tox.ini +++ b/src/pybind/mgr/tox.ini @@ -65,12 +65,11 @@ commands = pytest {posargs:cephadm/tests/test_ssh.py} -[testenv:mypy] +[testenv:{,py37-,py38-,py39-,py310-}mypy] setenv = MYPYPATH = {toxinidir}/.. passenv = MYPYPATH -basepython = python3 deps = -rrequirements.txt -c{toxinidir}/../../mypy-constrains.txt