]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/pybind: fix mypy arg parsing
authorAdam King <adking@redhat.com>
Fri, 9 Dec 2022 16:10:36 +0000 (11:10 -0500)
committerAdam King <adking@redhat.com>
Fri, 9 Dec 2022 16:19:43 +0000 (11:19 -0500)
On the new tox version it is treating each line as a new command
so it will do something like "mypy --config-file=../../mypy.ini"
as one command and then "-m balancer" as a totally separate command.
The first one immediately fails as it doesn't include any modules
to test. Adding backslashes to the ends of the lines gets it to
handle the lines as one long command

Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/requirements-required.txt
src/pybind/mgr/tox.ini

index a750b053791010526e088b81bbf1bceb437bec14..1c4bbf4710b969e1b6261a1811e289e32db4657d 100644 (file)
@@ -1,4 +1,4 @@
--e../../python-common
+-e ../../python-common
 asyncmock
 cherrypy
 cryptography
index 32f4a48bac4d225a2d1bedc8443fe3ebafff9934..af7c9b5eebbf8f4469e69cfa053db51ec53722cc 100644 (file)
@@ -70,6 +70,39 @@ setenv =
 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