diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
commit | 19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch) | |
tree | 42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/mypy.ini | |
parent | Initial commit. (diff) | |
download | ceph-upstream/16.2.11+ds.tar.xz ceph-upstream/16.2.11+ds.zip |
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/mypy.ini')
-rwxr-xr-x | src/mypy.ini | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/src/mypy.ini b/src/mypy.ini new file mode 100755 index 000000000..4f51b45bc --- /dev/null +++ b/src/mypy.ini @@ -0,0 +1,107 @@ +[mypy] +strict_optional = True +no_implicit_optional = True +warn_incomplete_stub = True +check_untyped_defs = True +show_error_context = True +allow_redefinition = True + +[mypy-rados] +# This would require a rados.pyi file +ignore_missing_imports = True + +[mypy-rbd] +# This would require a rbd.pyi file +ignore_missing_imports = True + +[mypy-cephfs] +# This would require a cephfs.pyi file +ignore_missing_imports = True + +# python-common +[mypy-ceph.*] +disallow_untyped_defs = True +[mypy-ceph.tests.*] +disallow_untyped_defs = False +ignore_errors = True + +[mypy-mgr_util] +disallow_untyped_defs = True + +[mypy-cephadm.*] +disallow_untyped_defs = True + +[mypy-devicehealth.*] +disallow_untyped_defs = True + +[mypy-nfs.*] +disallow_untyped_defs = True + +[mypy-orchestrator.*] +disallow_untyped_defs = True + +[mypy-prometheus.*] +disallow_untyped_defs = True + +[mypy-pg_autoscaler.*] +disallow_untyped_defs = True + +[mypy-rbd_support.*] +disallow_untyped_defs = True + +[mypy-rook.*] +disallow_untyped_defs = True + +# external import +[mypy-rook.rook_client.*] +disallow_untyped_defs = False + +# Make cephadm and rook happy +[mypy-OpenSSL] +ignore_missing_imports = True + +[mypy-prettytable] +ignore_missing_imports = True + +[mypy-jsonpatch] +ignore_missing_imports = True + +[mypy-urllib3.*] +ignore_missing_imports = True + +[mypy-execnet.*] +ignore_missing_imports = True + +[mypy-remoto.*] +ignore_missing_imports = True + +[mypy-kubernetes.*] +ignore_missing_imports = True + + +# Make dashboard happy: +[mypy-coverage] +ignore_missing_imports = True + +[mypy-urlparse] +ignore_missing_imports = True + +[mypy-cherrypy.*] +ignore_missing_imports = True + +[mypy-cheroot.*] +ignore_missing_imports = True + +[mypy-bcrypt] +ignore_missing_imports = True + +[mypy-onelogin.*] +ignore_missing_imports = True + +# Make volumes happy: +[mypy-StringIO] +ignore_missing_imports = True + +[mypy-ceph_argparse] +# more work to do +ignore_errors = True |