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