fix(lint): resolve ruff errors so ruff check . exits 0 (#111) #113
No reviewers
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!113
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "lint-cleanup/easystitch-111"
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?
Resolves lint-cleanup ticket Mark/easystitch#111 (Fix the lint on easystitch).
What this PR changes
Tracked debt only —
tests/test_gradient_pattern_fill.py(3 errors, present onorigin/main):Iterablefromcollections.abcinstead oftyping_post_digitizereturn annotation (PEP 563from __future__ import annotationsis already active, so this is a pure string-annotation change;# noqa: F821retained)No behavioral change.
ruff check .exits 0 on the tracked tree after this lands.Scope note (untracked leftovers)
ruff check .on the working tree also sees 11 errors in untracked leftover files (hermes-verify-e2e.py,src/raster/photo_segmentation.py,tests/test_photo_segmentation.py) tied to open issue #109 (photo-segmentation code in dirty tree). Those files' lint was fixed in place so the local preflight passes, but they are deliberately not committed here — their commit/backout/attach fate is #109's pending decision. Once this PR merges, a fresh checkout ofmainis lint-clean regardless.Verification
ruff check .→ exit 0 (14/14 errors resolved)python3 -m py_compileon all 4 edited files → OKtests/test_photo_segmentation.py→ 41 passed (untracked; exercises the editedphoto_segmentation.py)src/raster/photo_segmentation.py→ PASStests/test_gradient_pattern_fill.pyfails to collect with a pre-existing circular-import error also present onorigin/main(verified on clean worktree at40d2f3b) — unrelated to this change; repo CI has been failing on this for many runs.