forked from typeddjango/django-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mypy.ini
31 lines (26 loc) · 794 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
# Regular configuration file (can be used as base in other projects, runs in CI)
[mypy]
allow_redefinition = true
check_untyped_defs = true
ignore_missing_imports = false
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 output assertions to match a new syntax
force_uppercase_builtins = true
force_union_syntax = true
plugins =
mypy_django_plugin.main
# Ignore incomplete hints in yaml-stubs
[mypy-yaml.*]
disallow_untyped_defs = false
disallow_incomplete_defs = false
[mypy.plugins.django-stubs]
django_settings_module = scripts.django_tests_settings