-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mypy.ini
35 lines (26 loc) · 812 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
33
34
35
# For all options see: https://mypy.readthedocs.io/en/stable/config_file.html#
# === Global options ===
[mypy]
# Below is a modification of strict mode (https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options)
python_version = 3.10
# Useful warnings
warn_no_return = True
warn_return_any = True
warn_unreachable = True
warn_unused_ignores = True
warn_unused_configs = True
warn_redundant_casts = True
# Untyped definitions and calls
check_untyped_defs = True
disallow_untyped_calls = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
disallow_untyped_decorators = True
# Dynamic typing
disallow_subclassing_any = True
disallow_any_generics = True
# None and Optional handling
implicit_optional = True
# Error messages
show_column_numbers = True
pretty = True