Repository navigation
Expand file tree
/
Copy pathmypy.ini
More file actions
executable file
·145 lines (108 loc) · 2.99 KB
/
Copy pathmypy.ini
File metadata and controls
executable file
·145 lines (108 loc) · 2.99 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# mypy.ini — OmniMedical Suite type checking configuration
# Documentation: https://mypy.readthedocs.io/
[mypy]
# Target Python version
python_version = 3.11
# Strictness level — balanced for a monorepo with mixed code quality
# Start moderate, increase strictness over time
warn_return_any = True
warn_unused_configs = True
warn_redundant_casts = True
warn_unused_ignores = True
# Disallow untyped defs in new code (but allow in existing)
# disallow_untyped_defs = True # Enable incrementally
# Basic error settings
strict_optional = True
show_error_codes = True
show_column_numbers = True
show_error_context = True
pretty = True
color_output = True
# ===================================================================
# Per-package overrides
# ===================================================================
# First-party: gradually increase strictness
[mypy-app.*]
ignore_missing_imports = False
disallow_untyped_defs = False
[mypy-src.*]
ignore_missing_imports = False
disallow_untyped_defs = False
[mypy-packages.core.*]
ignore_missing_imports = True
disallow_untyped_defs = False
[mypy-packages.medical.*]
ignore_missing_imports = True
disallow_untyped_defs = False
[mypy-packages.nlp.*]
ignore_missing_imports = True
disallow_untyped_defs = False
[mypy-packages.security.*]
ignore_missing_imports = True
disallow_untyped_defs = False
[mypy-packages.evaluation.*]
ignore_missing_imports = True
disallow_untyped_defs = False
[mypy-packages.ai.*]
ignore_missing_imports = True
disallow_untyped_defs = False
[mypy-packages.ocr_postprocess.*]
ignore_missing_imports = True
disallow_untyped_defs = False
[mypy-packages.segmentation.*]
ignore_missing_imports = True
disallow_untyped_defs = False
[mypy-packages.config.*]
ignore_missing_imports = True
disallow_untyped_defs = False
# Third-party libraries: ignore missing imports (not installed in CI)
[mypy-paddleocr]
ignore_missing_imports = True
[mypy-easyocr]
ignore_missing_imports = True
[mypy-arabic_reshaper]
ignore_missing_imports = True
[mypy-bidi]
ignore_missing_imports = True
[mypy-tesseract]
ignore_missing_imports = True
[mypy-cv2]
ignore_missing_imports = True
[mypy-ar_corrector]
ignore_missing_imports = True
[mypy-rapidfuzz]
ignore_missing_imports = True
[mypy-sklearn]
ignore_missing_imports = True
[mypy-transformers]
ignore_missing_imports = True
[mypy-torch]
ignore_missing_imports = True
[mypy-gemini]
ignore_missing_imports = True
[mypy-google.generativeai]
ignore_missing_imports = True
[mypy-openai]
ignore_missing_imports = True
# Test files: no strict checking needed
[mypy-tests.*]
ignore_errors = True
disallow_untyped_defs = False
# Scripts and tools
[mypy-scripts.*]
ignore_errors = False
disallow_untyped_defs = False
ignore_missing_imports = True
[mypy-tools.*]
ignore_errors = True
disallow_untyped_defs = False
# Exclude directories from type checking
[mypy-omniparse.*]
ignore_errors = True
[mypy-omni_ocr.*]
ignore_errors = True
# Notebooks and legacy
[mypy-notebooks.*]
ignore_errors = True
[mypy-legacy.*]
ignore_errors = True