Repository navigation
ci: pin ruff and isort versions to match pre-commit - #132
Merged
Merged
Conversation
The formatting job used the latest ruff (now 0.17.5). Its larger default rule set reports 322 violations on main, so every PR fails the formatting check whatever it changes. Pin ruff 0.9.6 and isort 6.0.0, the versions in .pre-commit-config.yaml, so CI and the local hooks agree.
davide125
approved these changes
Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
formattingjob runsastral-sh/ruff-actionandisort/isort-actionwith no version set, so they install the latest releases. The latest ruff (0.17.5) has a much larger default rule set (UP, PYI, EXE, T10, RUF022, …). It reports 322 violations onmain, so every open PR (#126–#131) failsformattingeven though none of them adds a formatting issue.This pins both tools to the versions in
.pre-commit-config.yaml(ruff 0.9.6, isort 6.0.0), so CI checks what the local pre-commit hook checks.Moving to newer ruff rules can be its own change: bump the pin in both places and fix the violations together.