This repository was archived by the owner on Mar 15, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmypy.ini
More file actions
66 lines (54 loc) · 1.52 KB
/
mypy.ini
File metadata and controls
66 lines (54 loc) · 1.52 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
64
65
66
[mypy]
python_version = 3.12
# Strict mode - enable all strictness flags
strict = True
# Explicitly set strict flags (for documentation)
warn_return_any = True
warn_unused_configs = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
check_untyped_defs = True
disallow_untyped_decorators = True
no_implicit_optional = True
warn_redundant_casts = True
warn_unused_ignores = True
warn_unreachable = True
strict_equality = True
strict_concatenate = True
# Still useful to ignore missing imports for untyped libraries
ignore_missing_imports = True
# Error display
show_error_codes = True
show_column_numbers = True
show_error_context = True
pretty = True
# Performance
incremental = True
cache_dir = .mypy_cache
# Exclude patterns
exclude = (?x)(
^\.venv/
| ^venv/
| ^build/
| ^dist/
| ^\.git/
| ^__pycache__/
| \.pyc$
| ^src/creative_agent/schemas_generated/
)
# Per-module settings - keep tests less strict
[mypy-tests.*]
disallow_untyped_defs = False
disallow_incomplete_defs = False
# FastAPI and FastMCP decorators are untyped - allow untyped decorators for these files
[mypy-creative_agent.api_server]
disallow_untyped_decorators = False
[mypy-creative_agent.server]
disallow_untyped_decorators = False
[mypy-creative_agent.adcp_http]
disallow_untyped_decorators = False
[mypy-creative_agent.combined_server]
disallow_untyped_decorators = False
[mypy-creative_agent.data.standard_formats]
# Pydantic models with extra='forbid' trigger false positives for optional fields
warn_unused_ignores = False