Skip to content

Update lint and pin ruff version - #9

Merged
liquidsec merged 3 commits into
mainfrom
dev
Oct 23, 2026
Merged

liquidsec merged 3 commits into
mainfrom
dev

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
Fix ruff 0.17.2 lint errors and pin ruff in CI
@liquidsec
liquidsec merged commit bf222d8 into main Oct 23, 2026
12 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