Skip to content

Move Ruff to pre-commit to pin it - #250

Merged
vstinner merged 1 commit into
psf:mainfrom
hugovk:pin-ruff
Aug 5, 2026
Merged

Move Ruff to pre-commit to pin it#250
vstinner merged 1 commit into
psf:mainfrom
hugovk:pin-ruff

Conversation

@hugovk

@hugovk hugovk commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

tox -e pep8 is failing in #248 and #249.

This is because they run ruff check, and Ruff has just released version 0.16 which increases the number of default rules from 59 to 413: https://astral.sh/blog/ruff-v0.16.0

This PR moves the ruff check from tox to pre-commit, thereby pinning it, so we won't get any surprises outside explicit updates of this pin.

I pinned it to the previous 0.15, because there will be a lot of changes to go to 0.16, and we can handle that in another PR, including deciding whether to ignore some rules.

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vstinner
vstinner merged commit 9088e4c into psf:main Aug 5, 2026
12 checks passed
@vstinner

vstinner commented Aug 5, 2026

Copy link
Copy Markdown
Member

Merged, thanks for the fix.

@hugovk
hugovk deleted the pin-ruff branch August 5, 2026 13:44
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