-
Notifications
You must be signed in to change notification settings - Fork 0
/
mypy.ini
53 lines (47 loc) · 1.19 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
[mypy]
namespace_packages = true
ignore_missing_imports = true
explicit_package_bases = true
pretty = true
color_output = true
error_summary = true
show_error_codes = true
show_error_end = false
show_column_numbers = true
show_error_context = true
allow_untyped_globals = false
warn_unreachable = true
warn_no_return = false
# Allow redefinition, but it should be avoided.
allow_redefinition = true
# strict = true
# Strict covers all of the following:
warn_unused_configs = true
# Maybe activate later. For now allow e.g. "some_var: dict = ...".
allow_any_generics = true
allow_subclassing_any = true
allow_untyped_calls = true
allow_untyped_defs = false
allow_incomplete_defs = false
check_untyped_defs = true
allow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = false
no_implicit_reexport = false
strict_equality = true
strict_concatenate = true
# ---
# Don't check migrations.
[mypy-*.migrations.*]
ignore_errors = true
# Don't check django management commands.
[mypy-*.management.*]
ignore_errors = true
# Don't check tests.
[mypy-*.tests.*]
ignore_errors = true
# Don't check static.
[mypy-*.static.*]
ignore_errors = true