Skip to content

Commit 6e8a1ed

Browse files
committedMar 23, 2024
Add config for mypy
1 parent 7b3bf51 commit 6e8a1ed

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
 

‎.mypy.ini

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# For all options see: https://mypy.readthedocs.io/en/stable/config_file.html#
2+
3+
# === Global options ===
4+
5+
[mypy]
6+
7+
# Below is a modification of strict mode (https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options)
8+
9+
python_version = 3.10
10+
11+
# Useful warnings
12+
warn_no_return = True
13+
warn_return_any = True
14+
warn_unreachable = True
15+
warn_unused_ignores = True
16+
warn_unused_configs = True
17+
warn_redundant_casts = True
18+
19+
# Untyped definitions and calls
20+
check_untyped_defs = True
21+
disallow_untyped_calls = True
22+
disallow_untyped_defs = True
23+
disallow_incomplete_defs = True
24+
disallow_untyped_decorators = True
25+
26+
# Dynamic typing
27+
disallow_subclassing_any = True
28+
disallow_any_generics = True
29+
30+
# None and Optional handling
31+
implicit_optional = True
32+
33+
# Error messages
34+
show_column_numbers = True
35+
pretty = True

0 commit comments

Comments
 (0)
Please sign in to comment.