3298 ruff lint errors across source code — CI lint check will always fail #13

Closed
opened 2026-05-14 13:57:05 +00:00 by Mark · 1 comment
Owner

Bug

Running ruff check src/ produces 3298 lint errors across all source files. While 1794 are auto-fixable (whitespace, blank lines, missing newlines), there are also real bugs:

  • 23 instances of F405 (undefined local with import-star usage)
  • 4 instances of F403 (undefined-local-with-import-star)
  • 4 instances of F811 (redefined-while-unused)
  • 1 instance of F821 (undefined-name)
  • 1 instance of E722 (bare-except)
  • 6 instances of N802 (invalid function name)

Severity

YELLOW Medium — CI lint step will always fail. Most issues are cosmetic but the real bugs (undefined names, bare except) need fixing.

Files affected

All .py files in src/

## Bug Running `ruff check src/` produces 3298 lint errors across all source files. While 1794 are auto-fixable (whitespace, blank lines, missing newlines), there are also real bugs: - 23 instances of `F405` (undefined local with import-star usage) - 4 instances of `F403` (undefined-local-with-import-star) - 4 instances of `F811` (redefined-while-unused) - 1 instance of `F821` (undefined-name) - 1 instance of `E722` (bare-except) - 6 instances of `N802` (invalid function name) ## Severity YELLOW **Medium** — CI lint step will always fail. Most issues are cosmetic but the real bugs (undefined names, bare except) need fixing. ## Files affected All `.py` files in `src/`
Mark closed this issue 2026-05-14 15:25:42 +00:00
Author
Owner

Fixed — 3655 ruff lint errors reduced to 0. Auto-fixes applied (2071 style fixes + 1296 unsafe fixes), ruff config updated (line-length=120, per-file-ignores for manual/tests), and real bugs fixed: F821 undefined name, E722 bare-except (5 instances), F403/F405 import-star (suppressed in init.py), F811 redefined functions (removed 2 duplicate defs), F401 unused imports (cleaned from 6 files). CI lint should now pass clean.

Fixed — 3655 ruff lint errors reduced to 0. Auto-fixes applied (2071 style fixes + 1296 unsafe fixes), ruff config updated (line-length=120, per-file-ignores for manual/tests), and real bugs fixed: F821 undefined name, E722 bare-except (5 instances), F403/F405 import-star (suppressed in __init__.py), F811 redefined functions (removed 2 duplicate defs), F401 unused imports (cleaned from 6 files). CI lint should now pass clean.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/easystitch#13
No description provided.