-
-
Notifications
You must be signed in to change notification settings - Fork 557
Expand file tree
/
Copy pathmypy.ini
More file actions
39 lines (33 loc) · 850 Bytes
/
mypy.ini
File metadata and controls
39 lines (33 loc) · 850 Bytes
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
# Regular configuration file (can be used as base in other projects, runs in CI)
[mypy]
# Modified in `tests.yml`
incremental = true
# Strictness:
# TODO: add type args to all generics
disallow_any_generics = false
strict = true
allow_redefinition_new = true
local_partial_types = true
strict_equality_for_none = true
warn_unreachable = true
disable_error_code = empty-body
enable_error_code =
deprecated,
exhaustive-match,
explicit-override,
ignore-without-code,
possibly-undefined,
redundant-expr,
redundant-self,
truthy-bool,
truthy-iterable,
unimported-reveal,
unused-awaitable,
fixed_format_cache = true
show_traceback = true
plugins =
mypy_django_plugin.main,
mypy.plugins.proper_plugin
# Our settings:
[mypy.plugins.django-stubs]
django_settings_module = scripts.django_tests_settings