Skip to content

Commit 928c546

Browse files
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 <[email protected]>
1 parent 27187de commit 928c546

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pybind/mgr/tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,11 @@ commands =
6565
pytest {posargs:cephadm/tests/test_ssh.py}
6666

6767

68-
[testenv:mypy]
68+
[testenv:{,py37-,py38-,py39-,py310-}mypy]
6969
setenv =
7070
MYPYPATH = {toxinidir}/..
7171
passenv =
7272
MYPYPATH
73-
basepython = python3
7473
deps =
7574
-rrequirements.txt
7675
-c{toxinidir}/../../mypy-constrains.txt

0 commit comments

Comments
 (0)