Fix the lint on easystitch #111
Labels
No labels
blocked:children
blocked:depends-101
blocked:depends-103
blocked:depends-104
blocked:needs-attention
blocked:needs-decision
blocked:no-changes
blocked:preflight
bug
chore
feature-request
in-progress
lint-cleanup
needs-decompose
performance
quality
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/easystitch#111
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/easystitchfailed. 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/easystitch#104but 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/easystitch. 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.ruff check .exits 0 (#111) #113Lint cleanup done — PR ready for review/merge: #113 (branch
lint-cleanup/easystitch-111→main).What was fixed (14 errors →
ruff check .exits 0):Tracked (committed in the PR):
tests/test_gradient_pattern_fill.py— UP035 (typing.Iterable→collections.abc.Iterable), I001 (import sort), UP037 (drop quotes from_post_digitizeannotation; PEP 563 active).Untracked leftovers (fixed in place in the local working tree so the preflight passes; deliberately NOT committed — their commit/backout/attach fate is #109's pending decision):
hermes-verify-e2e.py— 2× I001, 4× E501 (line wraps only)src/raster/photo_segmentation.py— 3× F401 (unusedscipy.ndimageimports), 1× F841 (deadmaskassignment)tests/test_photo_segmentation.py— I001Verification:
ruff check .exit 0;py_compileon all edited files;tests/test_photo_segmentation.py41/41 passed; module import + API surface check onphoto_segmentation.pyPASS. Note:tests/test_gradient_pattern_fill.pyfails to collect with a pre-existing circular-import error that also reproduces on a cleanorigin/mainworktree (40d2f3b) — unrelated to this change; repo CI has been failing on it for many runs.To unblock the queue: merge PR #113, then strip
blocked:preflightfrom the held tickets (#104, #105, #109) or let triage re-dispatch — kilo-gsd's preflight will pass on a fresh checkout ofmain.