chore: pin ruff to 0.15.22 - #189
Merged
Merged
Conversation
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| .github/workflows/test.yml | Pins both Ruff CI invocations to version 0.15.22. |
Reviews (2): Last reviewed commit: "Pin ruff to 0.15.22 in CI" | Re-trigger Greptile
`uvx ruff` (no version specifier) resolves to the latest ruff every time.
Ruff 0.16.0 changed two things simultaneously:
1. Format now rewrites Python code blocks inside .md files (README + docs).
2. Lint added CPY001 (missing copyright header) among other new rules,
which the repo's `select = ["ALL"]` config picked up automatically.
Both failures started hitting master pushes as soon as uvx resolved 0.16.0
(see run 30390726259 on this PR).
Pin `uvx ruff@0.15.22` in the test.yml lint job — last stable release before
the 0.16 shift. Fixes both `Check formatting` and `Check linting`.
Local verification: ruff 0.15.22 → `format --check .` → 16 files formatted,
`check .` → All checks passed.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
tylerjroach
force-pushed
the
tylerroach-ruff-exclude-markdown
branch
from
July 28, 2026 19:12
93f2d49 to
d5e1aaa
Compare
rahul-mixpanel
approved these changes
Jul 28, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #189 +/- ##
=======================================
Coverage 96.25% 96.25%
=======================================
Files 13 13
Lines 2616 2616
Branches 139 139
=======================================
Hits 2518 2518
Misses 64 64
Partials 34 34
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Summary
uvx ruff(no version specifier) resolves to whatever ruff is latest —0.16.0just released and changed two things simultaneously:.mdfiles (caughtREADME.md+.github/copilot-instructions.md).CPY001(missing copyright header) among other new rules, which the repo'sselect = ["ALL"]config picks up automatically.Both failures started hitting master pushes as soon as uvx resolved 0.16 — see run 30390726259 on this PR (lint) and run 30389789981 (format) on the previous master push.
Fix
Pin
uvx ruff@0.15.22in the two lint job commands. That's the last stable release before the 0.16 shift.select = ["ALL"]is inherently unstable across ruff minor releases — every new release adds new rules. Pinning removes that class of surprise. Longer term, either replace["ALL"]with an explicit rule list or bump the pin deliberately (and address any new rules) rather than letting CI auto-adopt them.Diff
Two lines in
.github/workflows/test.yml:uvx ruff format --check .→uvx ruff@0.15.22 format --check .uvx ruff check .→uvx ruff@0.15.22 check .Test plan
ruff 0.15.22—format --check .→ 16 files formatted.check .→ All checks passed.Check formattingandCheck lintingsteps.🤖 Generated with Claude Code