as we always test with ubuntu jammy, which does not provide python3.7:
py37: skipped because could not find python interpreter with spec(s): py37
so there is no point testing with python3.7.
also, in tox v4, it is not able to handle "key = value" anymore, where
value has newlines in it. so we need to find a better way passing
command line options to the test command.
this change partially reverts
2dd86c9e3eca6e14a04a821edf3a654f31da7a21
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit
c67106b120c0289f0c26d2f89892e8954b3b57bd)
Conflicts:
src/pybind/mgr/tox.ini
[tox]
envlist =
py3,
- py37,
- lint,
mypy,
fix
flake8
passenv =
MYPYPATH
basepython = python3
-mypy_args = --config-file=../../mypy.ini
- -m alerts
- -m balancer
- -m cephadm
- -m crash
- -m dashboard
- -m devicehealth
- -m diskprediction_local
- -m hello
- -m influx
- -m iostat
- -m localpool
- -m mds_autoscaler
- -m mgr_module
- -m mgr_util
- -m mirroring
- -m nfs
- -m orchestrator
- -m pg_autoscaler
- -m progress
- -m prometheus
- -m rbd_support
- -m rook
- -m snap_schedule
- -m selftest
- -m stats
- -m status
- -m telegraf
- -m telemetry
- -m test_orchestrator
- -m volumes
- -m zabbix
deps =
-rrequirements.txt
-c{toxinidir}/../../mypy-constrains.txt
types-PyYAML
types-jwt
commands =
- mypy {[testenv:mypy]mypy_args}
- mypy --python-version 3.7 {[testenv:mypy]mypy_args}
-
+ mypy --config-file=../../mypy.ini \
+ -m alerts \
+ -m balancer \
+ -m cephadm \
+ -m crash \
+ -m dashboard \
+ -m devicehealth \
+ -m diskprediction_local \
+ -m hello \
+ -m influx \
+ -m iostat \
+ -m localpool \
+ -m mds_autoscaler \
+ -m mgr_module \
+ -m mgr_util \
+ -m mirroring \
+ -m nfs \
+ -m orchestrator \
+ -m pg_autoscaler \
+ -m progress \
+ -m prometheus \
+ -m rbd_support \
+ -m rook \
+ -m snap_schedule \
+ -m selftest \
+ -m stats \
+ -m status \
+ -m telegraf \
+ -m telemetry \
+ -m test_orchestrator \
+ -m volumes \
+ -m zabbix
[testenv:test]
setenv = {[testenv]setenv}