Fix the lint on pc2cad #67
Labels
No labels
blocked:needs-decision
blocked:preflight
bug
in-progress
in-progress
lint-cleanup
needs-decompose
quickfix
triage-approved
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/pc2cad#67
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pre-flight lint check for
Mark/pc2cadfailed. Kilo-GSD is hard-gated on clean lint and refuses to start work on this repo until the debt is resolved.What is dirty
Why this issue exists
Kilo-GSD was attempting
Mark/pc2cad#64but the preflightruff check .returned non-zero. We do not knowingly pass along lint errors; the original ticket is held until this one is resolved and the lint is clean.Scope
Fix every lint error reported above so
ruff check .exits 0 againstMark/pc2cad. Do not change behavior — only fix style/dead-code/safety issues that lint flags. Commit on a branch and open a PR. Once merged, kilo-gsd will resume the held tickets.Filed by
kilo-gsd-runner launcher on t_de18e5eb (lane-fix: runner's auto-file returned 422 because of an int64 label-id mismatch on this Forgejo instance; the lane manually filed using label IDs).
Fixed.
ruff check .exits 0 againstMark/pc2cad@ HEAD3e3e14d(verified locally + via the CI container in the recent preflight pin).Resolution: added
# noqa: E402on the twofrom pc2cad* import ...lines intests/test_reconstruction.py. The imports intentionally follow thesys.pathbootstrap so the in-tree modules resolve; ruff's E402 is the correct rule and the noqa is the correct exception. No behavior change.Note: a CI hardening commit (
3e3e14d) was pushed just before this fix and pins ruff 0.15.17 in the container, so future preflight runs use the same ruff version that flagged these errors. Kilo-GSD can resume the held tickets (#64, #65, #66) on the next dispatch.Closing.
Verified again from the project venv this time (was running from
~/.hermes/hermes-agent/venv/bin/ruffbefore — wrong venv, same verdict, but worth correcting the provenance):Full suite (
tests/, excluding the four CI-ignored files): 131 passed, 2 failed. The 2 failures aretest_extract_combined_fixture_kindsonmethodology_shaft.plyandmethodology_cone.ply— that's the flake already tracked in #65, not caused by this lint fix. Both fixtures' cone RANSAC fit previously failed; reusing the seed axis as a hint recovers a correct cone. Out of scope for #67.Note: project venv ruff is 0.15.18, CI pins 0.15.17. E402 rule unchanged across those versions; CI run on
3e3e14d(the tip with this fix) was green per/repos/Mark/pc2cad/actions/runs.