-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmypy.ini
More file actions
67 lines (50 loc) · 1.54 KB
/
mypy.ini
File metadata and controls
67 lines (50 loc) · 1.54 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
67
[mypy]
pretty = True
show_error_codes = True
# Exclude non-SDK code and subpackages (they have their own CI/linting)
exclude = ^(pkg/hanzoai/_files\.py|_dev/.*\.py|tests/.*|bin/.*|examples/.*|scripts/.*|pkg/hanzo/|pkg/hanzo-aci/|pkg/hanzo-agent/|pkg/hanzo-mcp/|pkg/hanzo-memory/|pkg/hanzo-network/|pkg/hanzo-dev-py/)
strict_equality = True
implicit_reexport = True
no_implicit_optional = True
warn_unreachable = True
warn_unused_configs = True
# Relax strict typing for SDK with many optional dependencies
check_untyped_defs = False
disallow_any_generics = False
disallow_untyped_defs = False
disallow_untyped_calls = False
disallow_subclassing_any = False
disallow_incomplete_defs = False
disallow_untyped_decorators = False
warn_return_any = False
warn_unused_ignores = False
warn_redundant_casts = False
ignore_missing_imports = True
cache_fine_grained = True
# Disable common error codes for SDK compatibility
disable_error_code = func-returns-value,overload-cannot-match
# https://github.com/python/mypy/issues/12162
[mypy.overrides]
module = "black.files.*"
ignore_errors = true
ignore_missing_imports = true
[mypy-hanzoai.grpo.*]
ignore_errors = true
[mypy-hanzoai.llm_client]
ignore_errors = true
[mypy-hanzoai.agents]
ignore_errors = true
[mypy-hanzoai.mcp]
ignore_errors = true
[mypy-hanzoai.cluster]
ignore_errors = true
[mypy-hanzoai._client]
ignore_errors = true
[mypy-hanzoai._base_client]
ignore_errors = true
[mypy-hanzoai._models]
ignore_errors = true
[mypy-hanzoai.auth]
ignore_errors = true
[mypy-hanzoai._utils.*]
ignore_errors = true