-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmypy.ini
More file actions
26 lines (23 loc) · 702 Bytes
/
Copy pathmypy.ini
File metadata and controls
26 lines (23 loc) · 702 Bytes
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
[mypy]
python_version = 3.12
plugins =
mypy_django_plugin.main,
mypy_drf_plugin.main
# We prefer to check_untyped_defs instead of disallowing them,
# since we have a lot of inherited methods that provide little
# value when annotated.
check_untyped_defs = True
# rules_mypy provides stubs as explicit deps; silence any remaining 3rd-party gaps
follow_imports = silent
follow_imports_for_stubs = True
ignore_missing_imports = True
warn_unused_ignores = True
warn_redundant_casts = True
# Exclude migrations and test directories from strict checks
exclude = (?x)(
^api/migrations/
| ^tests/
| ^api/tests/
)
[mypy.plugins.django-stubs]
django_settings_module = backend.settings