Created
November 10, 2023 11:49
-
-
Save twidi/412a1f8a0b47a30cb1d943b765d2d8ea to your computer and use it in GitHub Desktop.
config mypy pour wisemap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
[tool.mypy] | |
plugins = [ | |
"mypy_django_plugin.main", | |
] | |
python_version = "3.10" | |
check_untyped_defs = true | |
no_implicit_optional = true | |
warn_redundant_casts = true | |
warn_unused_ignores = false | |
warn_return_any = true | |
warn_unreachable = true | |
local_partial_types = true | |
strict_equality = true | |
show_error_context = true | |
show_column_numbers = true | |
show_error_codes = true | |
pretty = true | |
strict = true | |
implicit_reexport = true | |
disallow_subclassing_any = false | |
[tool.django-stubs] | |
django_settings_module = "wisemap.settings" | |
[[tool.mypy.overrides]] | |
module = [ | |
'wisemap.*.tests.*', | |
'wisemap.conftest', | |
'wisemap.*.conftest', | |
] | |
#; strict = False # doesn't work so we disallow all manually that are not set globally | |
disallow_untyped_calls = false | |
disallow_untyped_defs = false | |
disallow_incomplete_defs = false | |
disallow_untyped_decorators = false | |
[[tool.mypy.overrides]] | |
module = [ | |
'pytest_lazyfixture.*', | |
'allauth.*', | |
] | |
ignore_missing_imports = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment