-
Notifications
You must be signed in to change notification settings - Fork 0
/
mypy.ini
32 lines (30 loc) · 998 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
32
[mypy]
files = *.py
python_version = 3.10
# `Warning: --strict-concatenate is deprecated; use --extra-checks instead`:
# - https://github.com/python/mypy/issues/16189
follow_imports = normal
disallow_any_generics = True
disallow_subclassing_any = True
disallow_untyped_defs = True
check_untyped_defs = True
disallow_untyped_decorators = True
warn_redundant_casts = True
warn_unused_ignores = True
warn_no_return = True
warn_return_any = True
warn_unreachable = True
strict_concatenate = True
strict_equality = True
show_error_context = True
show_column_numbers = True
pretty = True
error_summary = True
warn_incomplete_stub = True
local_partial_types = True
incremental = True
# "The warn_unused_configs flag may be useful to debug misspelled section names.":
# - https://github.com/python/mypy/blob/v1.10.0/docs/source/config_file.rst#config-file-format
# - https://github.com/python/mypy/blob/v1.10.0/docs/source/config_file.rst#miscellaneous
# incremental = False
# warn_unused_configs = True