-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmypy.ini
45 lines (36 loc) · 956 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
36
37
38
39
40
41
42
43
44
45
[mypy]
# Platform specs
python_version=3.12
platform=linux
cache_dir=.mypy_cache
warn_unused_configs=True
# flake8-mypy expects the two following for sensible formatting
show_column_numbers=True
show_error_context=False
no_error_summary=True
# Check all imports
follow_imports=normal
ignore_missing_imports=True
# Be strict about type checking
warn_no_return=True
disallow_untyped_calls=True
disallow_untyped_defs=True
disallow_untyped_decorators=True
disallow_incomplete_defs=True
strict_equality=True
allow_redefinition=False
disallow_any_generics=True
disallow_subclassing_any=True
# Lax about these rules
warn_return_any=False
disallow_any_unimported=False
# Required for dependencies
implicit_reexport=True
# Try to check types implicitly whenever needed
check_untyped_defs=True
# treat Optional per PEP 484
strict_optional=True
no_implicit_optional=True
# lint-style cleanliness for typing
warn_redundant_casts=True
warn_unused_ignores=True