From 928c54683e17946df23aed4ecb3b0bc9c7c60c9c Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 18 Mar 2024 16:16:05 -0400 Subject: [PATCH] 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 --- src/pybind/mgr/tox.ini | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pybind/mgr/tox.ini b/src/pybind/mgr/tox.ini index 13aae3820a2..62f3ec07ca8 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 -- 2.39.5