-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmypy.ini
More file actions
28 lines (24 loc) · 872 Bytes
/
Copy pathmypy.ini
File metadata and controls
28 lines (24 loc) · 872 Bytes
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
[mypy]
# =============================================================================
# mypy Configuration for Cortex
# =============================================================================
# Run with: mypy src/cortex
# Or: npm run typecheck
# =============================================================================
python_version = 3.11
warn_unused_configs = True
ignore_missing_imports = True
# Start permissive, tighten progressively as codebase matures
# TODO: Enable warn_return_any and disallow_untyped_defs as type coverage improves
warn_return_any = False
disallow_untyped_defs = False
disallow_incomplete_defs = False
check_untyped_defs = True
# Useful warnings (safe to enable)
warn_redundant_casts = True
warn_unused_ignores = True
warn_unreachable = True
# Error output
show_error_codes = True
show_column_numbers = True
pretty = True