-
Notifications
You must be signed in to change notification settings - Fork 2
/
mypy.ini
37 lines (28 loc) · 783 Bytes
/
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
[mypy]
; Ensure full coverage
disallow_untyped_calls = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
disallow_untyped_decorators = False
check_untyped_defs = True
; Restrict dynamic typing
disallow_any_generics = False
disallow_subclassing_any = False
warn_return_any = False
; Know exactly what you're doing
warn_redundant_casts = True
warn_unused_ignores = False
warn_unused_configs = True
warn_unreachable = True
show_error_codes = True
; Explicit is better than implicit
no_implicit_optional = True
plugins =
mypy_django_plugin.main,
follow_imports = skip
disable_error_code = "django-manager-missing"
[mypy.plugins.django-stubs]
django_settings_module = "tests.settings"
strict_settings = False
[mypy-setuptools.*]
ignore_missing_imports = True