]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind: add tox.ini 41704/head
authorKefu Chai <kchai@redhat.com>
Sat, 5 Jun 2021 03:53:50 +0000 (11:53 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 5 Jun 2021 04:10:37 +0000 (12:10 +0800)
also add ceph_daemon to mypy.ini

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mypy.ini
src/pybind/tox.ini

index 358ab6dc961014217128bfc185b361017bc6d192..a6b15603b05b2b0156d30e3da14af19b12ad624f 100755 (executable)
@@ -18,6 +18,9 @@ ignore_missing_imports = True
 # This would require a cephfs.pyi file
 ignore_missing_imports = True
 
+[mypy-ceph_daemon]
+disallow_untyped_defs = True
+
 # python-common
 [mypy-ceph.*]
 disallow_untyped_defs = True
index 1882b6dac5f5a272366d09faee29a7018062b23d..9f06a78b40bd5c66d9274ae5709579264caf73f6 100644 (file)
@@ -1,2 +1,17 @@
+[tox]
+minversion = 3.6
+envlist =
+    mypy
+skipsdist = true
+
+[testenv]
+
+[testenv:mypy]
+deps = mypy
+commands =
+  python -m mypy --config-file ../mypy.ini \
+    -m ceph_daemon \
+    -m ceph_argparse
+
 [pep8]
 ignore = E123,E203