Skip to content

Fix ruff 0.17.2 lint errors and pin ruff in CI - #8

Merged
liquidsec merged 1 commit into
devfrom
fix/ruff-0.17.2
Oct 23, 2026
Merged

liquidsec merged 1 commit into
devfrom
fix/ruff-0.17.2

Conversation

@liquidsec

Copy link
Copy Markdown
Collaborator

No description provided.

CI installed ruff unpinned, and 0.17.2 expanded the default rule set,
breaking the lint job with 88 errors. Fix them all and pin ruff so new
releases can't break CI again.

- Merge nested `with` statements in tests (SIM117)
- Use context managers for file I/O; add loadState() helper (SIM115, ASYNC230)
- Narrow blind excepts to the specific exceptions; keep the intentional
  per-block catch in nextBlock() with a noqa (BLE001)
- Add BlockFailedError instead of raising bare Exception (TRY002)
- Import sorting, f-strings, and other autofixes
@liquidsec
liquidsec merged commit 050ab74 into dev Oct 23, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant