From: Kefu Chai Date: Sat, 5 Jun 2021 03:53:50 +0000 (+0800) Subject: pybind: add tox.ini X-Git-Tag: v17.1.0~1729^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F41704%2Fhead;p=ceph.git pybind: add tox.ini also add ceph_daemon to mypy.ini Signed-off-by: Kefu Chai --- diff --git a/src/mypy.ini b/src/mypy.ini index 358ab6dc961..a6b15603b05 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 1882b6dac5f..9f06a78b40b 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