From 7804a3180f22d5b9c89af8990b7bc5208d6be405 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 5 Jun 2021 11:53:50 +0800 Subject: [PATCH] pybind: add tox.ini also add ceph_daemon to mypy.ini Signed-off-by: Kefu Chai --- src/mypy.ini | 3 +++ src/pybind/tox.ini | 15 +++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/mypy.ini b/src/mypy.ini index 358ab6dc9610..a6b15603b05b 100755 --- a/src/mypy.ini +++ b/src/mypy.ini @@ -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 diff --git a/src/pybind/tox.ini b/src/pybind/tox.ini index 1882b6dac5f5..9f06a78b40bd 100644 --- a/src/pybind/tox.ini +++ b/src/pybind/tox.ini @@ -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 -- 2.47.3