From 630cb7f37ff5890cfba8d1bf44a0fae3a34f3b2c Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sun, 20 Nov 2022 14:31:32 +0000 Subject: [PATCH] Mypy --- .mypy.ini | 36 ++++++++++++++++++++++++++++++++++ demos/graphql-demo/__init__.py | 0 demos/graphql-demo/mypy.ini | 2 -- 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 .mypy.ini delete mode 100644 demos/graphql-demo/__init__.py delete mode 100644 demos/graphql-demo/mypy.ini diff --git a/.mypy.ini b/.mypy.ini new file mode 100644 index 000000000..5b44323be --- /dev/null +++ b/.mypy.ini @@ -0,0 +1,36 @@ +[mypy] +files = demos/blog/ +check_untyped_defs = True +follow_imports_for_stubs = True +disallow_any_decorated = True +disallow_any_generics = True +disallow_any_unimported = True +disallow_incomplete_defs = True +disallow_subclassing_any = True +disallow_untyped_calls = True +disallow_untyped_decorators = True +disallow_untyped_defs = True +enable_error_code = redundant-expr, truthy-bool, ignore-without-code, unused-awaitable +implicit_reexport = False +mypy_path = demos/blog/ +no_implicit_optional = True +pretty = True +show_column_numbers = True +show_error_codes = True +strict_equality = True +warn_incomplete_stub = True +warn_redundant_casts = True +warn_return_any = True +warn_unreachable = True +warn_unused_ignores = True + +[mypy-demos.blog.*] +disallow_untyped_calls = False +disallow_untyped_defs = False + +[mypy-demos.graphql-demo.*] +ignore_errors = True + +[mypy-tests.*] +disallow_untyped_calls = False +disallow_untyped_defs = False diff --git a/demos/graphql-demo/__init__.py b/demos/graphql-demo/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/demos/graphql-demo/mypy.ini b/demos/graphql-demo/mypy.ini deleted file mode 100644 index 976ba0294..000000000 --- a/demos/graphql-demo/mypy.ini +++ /dev/null @@ -1,2 +0,0 @@ -[mypy] -ignore_missing_imports = True