-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.mypy.ini
45 lines (40 loc) · 1.08 KB
/
.mypy.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[mypy]
python_version = 3.11
plugins = mypy_django_plugin.main, mypy_drf_plugin.main
warn_unused_configs = true
mypy_path = $MYPY_CONFIG_FILE_DIR/src
enable_error_code =
truthy-bool,
truthy-iterable,
redundant-expr,
unused-awaitable,
ignore-without-code,
possibly-undefined,
redundant-self,
django-manager-missing
extra_checks = true
allow_redefinition = false
check_untyped_defs = true
disallow_untyped_decorators = true
;disallow_any_explicit = true
;disallow_any_generics = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
explicit_package_bases = true
ignore_errors = false
ignore_missing_imports = true
implicit_reexport = false
local_partial_types = true
strict_equality = true
strict_optional = true
show_error_codes = true
no_implicit_optional = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unreachable = true
warn_no_return = true
[mypy.plugins.django-stubs]
django_settings_module = "saving_finance.settings"
[mypy-server.apps.*.migrations.*]
# Django migrations should not produce any errors (they are tested anyway):
ignore_errors = true