-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
mypy
conf for it to work as intended
The quotes around the regex was originally added to comply with TOML linting, but this turned out to break the configuration. Therefore the conf had to be moved away from the TOML file. After moving it, it appeared we were missing a required section for the `django-stubs` plugin, so that was also included.
- Loading branch information
1 parent
b6d2f10
commit b0dcfb1
Showing
2 changed files
with
41 additions
and
39 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[mypy] | ||
python_version = 3.11 | ||
plugins = mypy_django_plugin.main, mypy_drf_plugin.main | ||
ignore_missing_imports = true | ||
allow_untyped_globals = true | ||
check_untyped_defs = true | ||
show_error_codes = true | ||
follow_imports = silent | ||
strict_equality = true | ||
no_implicit_optional = true | ||
warn_incomplete_stub = true | ||
warn_redundant_casts = true | ||
warn_unused_configs = true | ||
warn_unused_ignores = true | ||
warn_unreachable = true | ||
warn_return_any = true | ||
enable_error_code = ignore-without-code | ||
disable_error_code = annotation-unchecked | ||
strict_concatenate = false | ||
disallow_incomplete_defs = true | ||
disallow_subclassing_any = true | ||
disallow_untyped_calls = true | ||
disallow_untyped_decorators = true | ||
disallow_untyped_defs = true | ||
|
||
[mypy-*.tests.*] | ||
check_untyped_defs = false | ||
disallow_incomplete_defs = false | ||
disallow_subclassing_any = false | ||
disallow_untyped_calls = false | ||
disallow_untyped_decorators = false | ||
disallow_untyped_defs = false | ||
warn_return_any = false | ||
warn_unreachable = false | ||
|
||
[mypy-*.migrations.*] | ||
ignore_errors = true | ||
|
||
[mypy.plugins.django-stubs] | ||
django_settings_module = "lego.settings" |
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