]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: disable namespace packages on mypy runs
authorJohn Mulligan <jmulligan@redhat.com>
Sat, 20 Jan 2024 16:30:40 +0000 (11:30 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 23 Jan 2024 14:45:40 +0000 (09:45 -0500)
Namespace package support confuses mypy in regards to the
pybind/{cephfs,rados,rbd}, etc when using mypy >= 0.990.
Turning them off seems to not be a problem for the ceph code.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
qa/tox.ini

index 234873c4338611c5abd98e2b5a626432b213bd05..af4c699919909da8d4663b4d4072d33c7a14d151 100644 (file)
@@ -26,7 +26,7 @@ deps =
   types-cryptography
   types-python-dateutil
   -c{toxinidir}/../src/mypy-constrains.txt
-commands = mypy {posargs:.}
+commands = mypy --no-namespace-packages {posargs:.}
 
 [testenv:py3]
 basepython = python3