forked from typeddjango/djangorestframework-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmypy.ini
45 lines (38 loc) · 1.09 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]
allow_redefinition = true
check_untyped_defs = true
ignore_missing_imports = true
incremental = true
strict_optional = true
show_traceback = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unreachable = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disable_error_code = empty-body
# TODO: update our test error messages to match new mypy output
show_error_codes = false
force_uppercase_builtins = true
force_union_syntax = true
plugins =
mypy_django_plugin.main,
mypy_drf_plugin.main
[mypy.plugins.django-stubs]
django_settings_module = scripts.drf_tests_settings
# Suppress errors from site-packages due to https://github.com/typeddjango/pytest-mypy-plugins/issues/134
[mypy-uritemplate.*]
warn_unreachable = false
[mypy-yaml.*]
disallow_untyped_defs = false
disallow_incomplete_defs = false
[mypy-urllib3.*]
disallow_untyped_defs = false
disallow_incomplete_defs = false
[mypy-requests.*]
disallow_untyped_defs = false
disallow_incomplete_defs = false
[mypy-markdown.*]
disallow_untyped_defs = false
disallow_incomplete_defs = false