Skip to content

chore: pin ruff to 0.15.22 - #24

Merged
Avicennasis merged 1 commit into
mainfrom
chore/pin-ruff
Jul 28, 2026
Merged

chore: pin ruff to 0.15.22#24
Avicennasis merged 1 commit into
mainfrom
chore/pin-ruff

Conversation

@Avicennasis

Copy link
Copy Markdown
Owner

CI ran pip install ruffunpinned, whatever released most recently — while pre-commit pinned v0.15.11. Two gates, two linters, nothing forcing them to agree.

This one was about to break

ruff 0.16.0 expanded its default rule set: EXE, I and UP now fire where 0.15.x reported nothing. This tree has 22 such findings, so the next CI run would have gone red without a single line of code changing.

The last green run here was 2026-07-16; ruff 0.16.0 shipped 2026-07-23. The badge is stale, not passing.

Pinned to 0.15.22, not 0.16.0

0.15.22 is the newest release this tree actually passes — verified with CI's exact commands, not assumed.

Deliberately not 0.16.0: adopting its new rules means real code changes, and that belongs in its own reviewable PR rather than smuggled into a pinning commit.

pre-commit bumped to match. Verified it passes and touches no source file — which matters, because the hook runs ruff --fix and ruff-format, and both modify files.

This repo's own conventions already say "Pin all Actions by SHA with version comment" — ruff was the sole floating input.

CI ran `pip install ruff` (unpinned — whatever released most recently)
while pre-commit pinned v0.15.11. Two gates, two linters, and nothing
forcing them to agree.

ruff 0.16.0 expanded its DEFAULT rule set: EXE, I and UP now fire where
0.15.x reported nothing. This tree has 22 such findings, so the very next
CI run would have gone red without a single line of code changing. The
last green run here was 2026-07-16, before 0.16.0 shipped on 2026-07-23 —
the badge is stale, not passing.

Pinned to 0.15.22, the NEWEST release this tree actually passes, verified
with CI's exact commands rather than assumed. Deliberately not 0.16.0:
adopting its new rules means real changes and belongs in its own reviewable
PR, not smuggled into a pinning commit.

pre-commit bumped to match. Verified it passes and touches no source file,
which matters because the hook runs `ruff --fix` and `ruff-format` — both
of which MODIFY files.

This repo's own conventions already say "Pin all Actions by SHA with
version comment"; ruff was the sole floating input.
@Avicennasis
Avicennasis merged commit bc93e85 into main Jul 28, 2026
5 checks passed
@Avicennasis
Avicennasis deleted the chore/pin-ruff branch July 28, 2026 21:22
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