Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mypy #210

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Mypy #210

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .mypy.ini
Original file line number Diff line number Diff line change
@@ -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
Empty file removed demos/graphql-demo/__init__.py
Empty file.
2 changes: 0 additions & 2 deletions demos/graphql-demo/mypy.ini

This file was deleted.