Skip to content

ci: pin ruff and isort versions to match pre-commit - #132

Merged
davide125 merged 1 commit into
systemd:mainfrom
aleivag:pin-ci-formatters
Nov 17, 2026
Merged

davide125 merged 1 commit into
systemd:mainfrom
aleivag:pin-ci-formatters

Conversation

@aleivag

@aleivag aleivag commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

The formatting job runs astral-sh/ruff-action and isort/isort-action with 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 on main, so every open PR (#126–#131) fails formatting even 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.

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
davide125 merged commit 9326809 into systemd:main Nov 17, 2026
12 of 44 checks passed
@aleivag
aleivag deleted the pin-ci-formatters branch November 18, 2026 15:01
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.

2 participants