ci(style): pin ruff-action to 0.15.12 - #112
Merged
Merged
Conversation
astral-sh/ruff-action@v3 installs the latest ruff release by default. ruff 0.16.0 enabled stricter default rules that flag ~98 pre-existing issues across the repo, turning previously-green PRs red without any code change (main's last green Style run was 2026-07-21, before 0.16.0 shipped). Pin both the lint and format steps to 0.15.12 — the version uv resolves locally, against which the repo is clean — so CI stops drifting. Bump this deliberately alongside any lint fixes when adopting a newer ruff. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ApprovabilityVerdict: Approved Pins ruff-action to a specific version to prevent CI drift from upstream releases. This is a minor CI configuration change with no runtime or production impact. You can customize Macroscope's approvability policy. Learn more. |
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
Pins
astral-sh/ruff-action@v3to ruff 0.15.12 in both the lint and format steps ofstyle.yml.Why
ruff-actioninstalls the latest ruff release by default. ruff 0.16.0 (released after 2026‑07‑21) enabled stricter default rules that flag ~98 pre-existing issues across the repo (examples/,renderers/__init__.py,renderers/base.py, …). This turned green PRs red without any code change — e.g. the Laguna‑S‑2.1 routing PR (#111), whose 3-line diff introduced none of the reported errors.mainand on feature branches.uvresolves locally):All checks passed!, format clean.Pinning stops the silent drift so CI reflects the version the repo is actually maintained against. Adopting a newer ruff (and applying its fixes) can then be a deliberate, self-contained change — bump this pin alongside those fixes.
Testing
uvx ruff@0.15.12 check→ All checks passeduvx ruff@0.15.12 format --check→ 61 files already formatted🤖 Generated with Claude Code
Note
Low Risk
CI-only workflow change; no application code, auth, or runtime behavior affected.
Overview
Pins Ruff to 0.15.12 in the Style workflow so lint and format jobs no longer pull the latest release by default.
Both the Lint and Format
astral-sh/ruff-action@v3steps now setversion: "0.15.12", with comments explaining that unpinned CI was drifting (e.g. 0.16.0 stricter rules) and failing PRs without code changes. Future Ruff upgrades are meant to be intentional: bump this pin together with any lint fixes.Reviewed by Cursor Bugbot for commit 7c0cea5. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Pin ruff-action to version 0.15.12 in CI style workflow
Pins both the Ruff Lint and Ruff Format steps in style.yml to version
0.15.12instead of the action's default latest release, preventing unexpected failures from automatic Ruff upgrades.Macroscope summarized 7c0cea5.