-
Notifications
You must be signed in to change notification settings - Fork 15
/
mypy.ini
96 lines (73 loc) · 2.07 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[mypy]
plugins =
mypy_django_plugin.main,
mypy_drf_plugin.main,
strawberry.ext.mypy_plugin
mypy_path = $MYPY_CONFIG_FILE_DIR/libs/python/stubs
strict_equality = true
show_error_codes = true
# https://github.com/typeddjango/django-stubs/blob/master/mypy.ini
# https://github.com/typeddjango/djangorestframework-stubs/blob/master/mypy.ini
allow_redefinition = true
check_untyped_defs = true
incremental = true
strict_optional = true
show_traceback = true
warn_unused_ignores = false
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unreachable = true
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
disable_error_code = empty-body
# TODO: update our output assertions to match a new syntax
force_uppercase_builtins = true
force_union_syntax = true
[mypy.plugins.django-stubs]
django_settings_module = "betterangels_backend.settings"
# Turn off mypy for all django migration packages via naming convention.
[mypy-*.migrations.*]
ignore_errors = True
# Explicitly Ignore Untyped Libs
[mypy-allauth.*]
ignore_missing_imports = True
[mypy-admin_async_upload.*]
ignore_missing_imports = True
[mypy-environ.*]
ignore_missing_imports = True
[mypy-deepdiff.*]
ignore_missing_imports = True
[mypy-dj_rest_auth.*]
ignore_missing_imports = True
[mypy-django_choices_field.*]
ignore_missing_imports = True
[mypy-django_ckeditor_5.*]
ignore_missing_imports = True
[mypy-django_select2.*]
ignore_missing_imports = True
[mypy-guardian.*]
ignore_missing_imports = True
[mypy-import_export.*]
ignore_missing_imports = True
[mypy-newrelic.*]
ignore_missing_imports = True
[mypy-organizations.*]
ignore_missing_imports = True
[mypy-pghistory.*]
ignore_missing_imports = True
[mypy-places.*]
ignore_missing_imports = True
[mypy-phonenumber_field.*]
ignore_missing_imports = True
[mypy-post_office.*]
ignore_missing_imports = True
[mypy-sesame.*]
ignore_missing_imports = True
[mypy-time_machine.*]
ignore_missing_imports = True
[mypy-unittest_parametrize.*]
ignore_missing_imports = True
[mypy-vcr.*]
ignore_missing_imports = True