-
Notifications
You must be signed in to change notification settings - Fork 24
/
mypy.ini
50 lines (39 loc) · 1.06 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
46
47
48
49
50
[mypy]
follow_imports: silent
ignore_missing_imports: True
# Optionals
no_implicit_optional = True
# Strictness
allow_untyped_globals = False
allow_redefinition = False
implicit_reexport = False
strict_equality = True
# Warnings
warn_unused_ignores = True
warn_no_return = True
warn_return_any = True
warn_redundant_casts = True
warn_unreachable = True
# Error output
show_column_numbers = True
show_error_context = True
show_error_codes = True
show_traceback = True
pretty = True
color_output = True
error_summary = True
plugins =
mypy_django_plugin.main
[mypy-colors]
ignore_missing_imports = True
[mypy-translate]
ignore_missing_imports = True
[mypy-pytest]
ignore_missing_imports = True
[mypy.plugins.django-stubs]
# We need to pick one settings module for typechecking the entire repo, including all models.
# Fortunately we have an app (helloworld.service.admin) that depends on all the models.
django_settings_module = "helloworld.service.admin.settings"
# Turn off mypy for all django migration packages via naming convention.
[mypy-*.migrations.*]
ignore_errors: True