Repository navigation
fix(ci/lint): make python_pipeline green on master (KBI002 + dead monkeypatch from #3290) - #3312
Conversation
…keypatch) Two pre-existing lint failures on master were blocking the session-stop hook on every turn: 1. `ci/autoresearch/phases.py:813,1067` — bare `except KeyboardInterrupt: raise` violated KBI002 (KeyboardInterrupt handler must call `handle_keyboard_interrupt(ki)`). Replaced with the canonical pattern; `handle_keyboard_interrupt` was already imported at the module top. 2. `ci/autoresearch/staging.py` — `_suppress_root_platformio_merge` monkeypatched `ci.compiler.pio.get_root_platformio_build_flags`, which was a bridge added in PR #3290 while PR #3278 was in flight. PR #3278 (sever) and PR #3279 (Phase 4 cleanup, PR #3295) have both merged; `get_root_platformio_build_flags` was deleted entirely. The monkeypatch's target no longer exists — ty was correctly flagging the `unresolved-attribute` reference. Deleted the obsolete context manager and its `with` block. `bash lint` python_pipeline now green. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughTwo cleanup changes to the autoresearch CI pipeline: ChangesAutoresearch CI pipeline cleanup
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Two pre-existing lint failures on master blocking the session-stop hook every turn. Both small, both cleanup.
Changes
ci/autoresearch/phases.py:813,1067— bareexcept KeyboardInterrupt: raiseviolated KBI002. Replaced withexcept KeyboardInterrupt as ki: handle_keyboard_interrupt(ki); raise(the canonical project pattern;handle_keyboard_interruptalready imported).ci/autoresearch/staging.py—_suppress_root_platformio_mergemonkeypatchedci.compiler.pio.get_root_platformio_build_flags. That function was a bridge from PR feat(autoresearch): synthesise platformio.ini from boards.py, drop root dep #3290 while PR Sever root platformio.ini merge from CI compile path (#3274 Phase 2) #3278 was in flight. PR Sever root platformio.ini merge from CI compile path (#3274 Phase 2) #3278 (sever) and Deprecate PioCompiler as build fallback + Phase 4 cleanup (#3274 Phase 3) #3279 (Phase 4 cleanup, via PR feat(ci): deprecate PioCompiler backend + Phase 4 cleanup (#3279) #3295) have both merged;get_root_platformio_build_flagswas deleted entirely. The monkeypatch's target no longer exists —tywas correctly flagging theunresolved-attributereference. Deleted the obsolete context manager + itswithblock.Test plan
bash lintpython_pipeline now green (ruff + ty both pass).🤖 Generated with Claude Code
Summary by CodeRabbit