-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmypy.ini
More file actions
63 lines (50 loc) · 1.41 KB
/
mypy.ini
File metadata and controls
63 lines (50 loc) · 1.41 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[mypy]
python_version = 3.13
# === STRICT MODE: 100% Type Safety ===
# All functions must have complete type annotations
strict = True
# Additional strict checks
warn_return_any = True
warn_unused_configs = True
warn_redundant_casts = True
warn_unused_ignores = True
warn_no_return = True
warn_unreachable = True
# Enforce complete typing
disallow_untyped_defs = True
disallow_untyped_calls = True
disallow_incomplete_defs = True
disallow_untyped_decorators = True
disallow_any_generics = True
disallow_any_decorated = True
disallow_any_explicit = False
disallow_any_unimported = False
# Strictness for optional types
no_implicit_optional = True
strict_optional = True
# Report configuration
pretty = True
show_error_context = True
show_column_numbers = True
show_error_codes = True
implicit_reexport = False
strict_equality = True
[mypy-yaml.*]
ignore_missing_imports = True
[mypy-tests.*]
ignore_errors = True
[mypy-plugins.*]
ignore_errors = True
# Modules with @staticmethod decorated functions that use Any types
# These methods handle dynamic configuration data and legitimately need Any types
# The @staticmethod decorator triggers disallow_any_decorated in strict mode
[mypy-cli.health_check]
disable_error_code = misc
[mypy-cli.git_config_manager]
disable_error_code = misc
[mypy-cli.config_engine]
disable_error_code = misc
[mypy-cli.commit_validator]
disable_error_code = misc
[mypy-cli.main]
disable_error_code = misc