Commit 22cd352
committed
Avoid stale lint failures from config helper imports
Move PyYAML loading into the helpers that read and write agent-context configuration, and replace the broad Any annotation with object. The runtime behavior stays the same while the module no longer exposes top-level imports that can be flagged as unused when CI analyzes a narrower code shape.
Constraint: CI is failing on F401 for top-level yaml and typing.Any imports in src/specify_cli/__init__.py
Rejected: Delete PyYAML usage entirely | agent-context config still needs YAML read/write support
Confidence: high
Scope-risk: narrow
Tested: uvx ruff check src/
Tested: .venv/bin/python -m pytest tests/integrations/test_integration_codex.py tests/integrations/test_integration_base_markdown.py -q
Assisted-by: OpenAI Codex (model: GPT-5, autonomous)1 parent 1021698 commit 22cd352
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | 32 | | |
34 | 33 | | |
35 | | - | |
36 | | - | |
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
| |||
269 | 266 | | |
270 | 267 | | |
271 | 268 | | |
272 | | - | |
| 269 | + | |
273 | 270 | | |
| 271 | + | |
| 272 | + | |
274 | 273 | | |
275 | 274 | | |
276 | | - | |
| 275 | + | |
277 | 276 | | |
278 | 277 | | |
279 | 278 | | |
| |||
294 | 293 | | |
295 | 294 | | |
296 | 295 | | |
297 | | - | |
| 296 | + | |
298 | 297 | | |
299 | 298 | | |
| 299 | + | |
| 300 | + | |
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
| |||
0 commit comments