-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmypy.ini
More file actions
284 lines (206 loc) · 6.35 KB
/
Copy pathmypy.ini
File metadata and controls
284 lines (206 loc) · 6.35 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
[mypy]
# Global settings.
# NOTE: this file is mypy's authoritative config (pyproject [tool.mypy] is
# ignored when mypy.ini exists). Edit strictness HERE, not in pyproject.
python_version = 3.12
warn_unused_configs = True
show_error_codes = True
show_column_numbers = True
pretty = True
# Relaxed settings for practical development
# These can be tightened incrementally as code improves
strict_optional = False
no_implicit_optional = False
check_untyped_defs = False
disallow_incomplete_defs = False
disallow_untyped_defs = False
warn_return_any = False
warn_redundant_casts = False
warn_unused_ignores = False
# Ignore missing imports for third-party libraries
[mypy-google.*]
ignore_missing_imports = True
[mypy-playwright.*]
ignore_missing_imports = True
[mypy-docx.*]
ignore_missing_imports = True
[mypy-colorama.*]
ignore_missing_imports = True
[mypy-httpx.*]
ignore_missing_imports = True
[mypy-bs4.*]
ignore_missing_imports = True
[mypy-dotenv.*]
ignore_missing_imports = True
[mypy-pytest.*]
ignore_missing_imports = True
[mypy-docx2pdf.*]
ignore_missing_imports = True
# Per-module overrides for files with many third-party type issues
# These files have complex interactions with external libraries
[mypy-primr.data.scraping.browsers]
ignore_errors = True
[mypy-primr.output.markdown_parser]
ignore_errors = True
[mypy-primr.output.style_engine]
ignore_errors = True
[mypy-primr.output.table_builder]
ignore_errors = True
[mypy-primr.utils.console]
ignore_errors = True
# AI modules with complex Gemini SDK interactions
[mypy-primr.ai.deep_research]
ignore_errors = True
[mypy-primr.ai.competitive]
ignore_errors = True
# Data scraping modules with complex BeautifulSoup/Playwright interactions
[mypy-primr.data.scraping.content]
ignore_errors = True
[mypy-primr.data.scraping.structured_content]
ignore_errors = True
# MCP server modules (experimental API)
[mypy-primr.mcp_server.versioning]
ignore_errors = True
# Output modules with python-docx type issues
[mypy-primr.output.polish_elements]
ignore_errors = True
[mypy-primr.output.markdown_converter]
ignore_errors = True
[mypy-primr.output.document_builder]
ignore_errors = True
[mypy-primr.output.content_pattern_detector]
ignore_errors = True
# Prompts modules with Jinja2 type issues
[mypy-primr.prompts.shared_loader]
ignore_errors = True
[mypy-primr.prompts.registry]
ignore_errors = True
[mypy-primr.prompts.composer]
ignore_errors = True
# QA modules with complex dict patterns
[mypy-primr.qa.report_analyzer]
ignore_errors = True
[mypy-primr.qa.issue_classifier]
ignore_errors = True
[mypy-primr.qa.config]
ignore_errors = True
# Utils with complex type guard patterns
[mypy-primr.utils.type_guards]
ignore_errors = True
[mypy-primr.utils.security]
ignore_errors = True
# Agentic subagents (experimental)
[mypy-primr.agentic.subagents.writer]
ignore_errors = True
# Data scraping modules
[mypy-primr.data.scraping.discovery]
ignore_errors = True
[mypy-primr.data.scraping.http_clients]
ignore_errors = True
[mypy-primr.data.scraping.vertical_slice]
ignore_errors = True
[mypy-primr.data.scraping.tier_registry]
ignore_errors = True
[mypy-primr.data.scraping.orchestrator]
ignore_errors = True
# MCP server modules
[mypy-primr.mcp_server.security]
ignore_errors = True
[mypy-primr.mcp_server.auth]
ignore_errors = True
[mypy-primr.mcp_server.spike]
ignore_errors = True
[mypy-primr.mcp_server.pipeline_runner]
ignore_errors = True
[mypy-primr.mcp_server.agentic_tools]
ignore_errors = True
[mypy-primr.mcp_server.agentic_resources]
ignore_errors = True
[mypy-primr.mcp_server.resources]
ignore_errors = True
[mypy-primr.mcp_server.server]
ignore_errors = True
[mypy-primr.mcp_server.cli]
ignore_errors = True
# Core modules with complex patterns
[mypy-primr.core.ai_strategy]
ignore_errors = True
[mypy-primr.core.deep_research_runner]
ignore_errors = True
[mypy-primr.core.research_agent]
ignore_errors = True
# AI modules
[mypy-primr.ai.preflight]
ignore_errors = True
# QA modules
[mypy-primr.qa.analyzer]
ignore_errors = True
[mypy-primr.qa.report_loader]
ignore_errors = True
# Utils
[mypy-primr.utils.errors]
ignore_errors = True
[mypy-primr.utils.telemetry]
ignore_errors = True
# Prompts
[mypy-primr.prompts.loader]
ignore_errors = True
[mypy-primr.prompts.migration]
ignore_errors = True
# =============================================================================
# STRICT ALLOWLIST — incremental type-strictness ratchet (grow, never regress)
# =============================================================================
# These modules require fully-annotated defs. Add a module here only once it is
# verified clean (`mypy <mod> --disallow-untyped-defs --disallow-incomplete-defs`).
# This is the real, in-effect strict ratchet (the global above stays relaxed).
[mypy-primr.skill_pack.schema]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-primr.skill_pack.config]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-primr.skill_pack.curation]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-primr.skill_pack.planner]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-primr.skill_pack.saved_plan]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-primr.skill_pack.industry]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-primr.skill_pack.code_comment_projection]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-primr.skill_pack.command_grammar]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-primr.skill_pack.execution_dataflow]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-primr.skill_pack.eval_validation]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-primr.skill_pack.markdown_safety]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-primr.skill_pack.script_safety]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-primr.skill_pack.verifier_asset]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-primr.utils.content_sanitizer]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-primr.utils.sensitive_instruction_safety]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-primr.utils.logging_config]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[mypy-primr.data.hiring_signals]
disallow_untyped_defs = True
disallow_incomplete_defs = True