-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmypy.ini
33 lines (23 loc) · 906 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
[mypy]
# Specify the Python version to type-check
python_version = 3.10
# List of directories or files for MyPy to check
files = mento/, tests/
# Ignore imports that can't be found (useful in complex or third-party libraries)
ignore_missing_imports = True
# Disallow functions without type hints (enforce stricter typing)
disallow_untyped_defs = True
# Disallow calling functions without type annotations
disallow_untyped_calls = True
# Report errors if types are not clear from default values
strict_optional = True
# Allow variables to have more than one type (e.g., int or None)
allow_redefinition = False
# Show the error codes with messages
show_error_codes = True
# Enable error reporting for unreachable code
warn_unreachable = True
# Check if code attempts to access or modify non-existent members of objects
warn_no_return = True
# Treat "Any" types as errors
warn_unused_ignores = True