Skip to content

Pin ruff so the lint gate is reproducible - #7

Merged
shivamsn97 merged 1 commit into
mainfrom
ci/pin-ruff
Aug 6, 2026
Merged

Pin ruff so the lint gate is reproducible#7
shivamsn97 merged 1 commit into
mainfrom
ci/pin-ruff

Conversation

@shivamsn97

Copy link
Copy Markdown
Member

The lint job runs pip install ruff with no constraint, so it installs whatever version is newest when it runs. ruff 0.16 enables rules that did not exist at 0.6 and reports 126 findings on an untouched tree, so the gate went red on main without any code change — and every open PR inherited the failure, making unrelated dependency bumps look broken.

This pins the same range the framework repo already uses for its dev dependency (ruff>=0.6,<0.7). Verified: that version reports All checks passed on the current tree, while 0.16.1 reports 126.

Adopting a newer ruff is worth doing — it has genuinely useful rules — but as a deliberate change that also fixes what it reports, not as a silent dependency drift that breaks the build for everyone.

The lint job installed ruff unpinned, so it ran whatever version was
newest at the time. ruff 0.16 enables rules that did not exist at 0.6 and
reports 126 findings on an untouched tree, which turned the gate red on
main with no change to the code — and made every open PR look broken.

Pins the range the framework repo already uses for its dev dependency.
Adopting a newer ruff is worth doing, but as its own change, alongside
the findings it reports.
@shivamsn97
shivamsn97 merged commit c2598c4 into main Aug 6, 2026
7 checks passed
@shivamsn97
shivamsn97 deleted the ci/pin-ruff branch August 6, 2026 14:08
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