-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmypy.ini
More file actions
38 lines (29 loc) · 1 KB
/
mypy.ini
File metadata and controls
38 lines (29 loc) · 1 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
# Central mypy configuration for Asya project
# Gradual typing approach: strict on new code, lenient on existing untyped code
[mypy]
python_version = 3.13
warn_return_any = False
warn_unused_configs = True
# Gradual typing: don't require annotations everywhere yet
disallow_untyped_defs = False
disallow_untyped_calls = False
disallow_incomplete_defs = False
check_untyped_defs = True
# Still catch actual type errors
warn_redundant_casts = True
warn_unused_ignores = True
no_implicit_optional = True
# Be lenient about missing imports
ignore_missing_imports = True
# Don't require return type annotations
warn_no_return = False
# Exclude patterns
exclude = (venv|\.venv|build|dist|\.egg-info|src/asya-state-proxy/tests)
# Specific module configurations can go here as needed
# [mypy-module_name]
# disallow_untyped_defs = True
# asya-runtime uses Python 3.7-compatible type comments which mypy doesn't fully support
[mypy-src.asya-runtime.*]
follow_imports = skip
[mypy-src.asya-runtime.tests.*]
follow_imports = skip