Skip to content

Fix red CI: pin ruff rule set to the classic default - #147

Merged
dbieber merged 1 commit into
mainfrom
claude/fix-ci-ruff-pin
Sep 5, 2026
Merged

Fix red CI: pin ruff rule set to the classic default#147
dbieber merged 1 commit into
mainfrom
claude/fix-ci-ruff-pin

Conversation

@dbieber

@dbieber dbieber commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Problem

Every CI run on main today is red at the Lint with ruff step. Last green build: 2026-07-17 (9ae7fb3). No code change is responsible.

Cause

The workflow installs ruff unpinned (uv pip install .[test], where test = ['ruff', 'pytest']) and runs ruff check .. [tool.ruff] set no explicit select, so it relied on ruff's default rule set. A ruff version released after 2026-07-17 widened that default (e.g. import-order I001), so previously-passing, untouched files (gonotego/audio/runner.py and others) now fail.

Fix

Pin the rule set explicitly to the classic default the code was written against — E4, E7, E9, F — keeping the existing intentional E722 ignore. Deterministic across ruff versions. No source files changed.

Verified

ruff check . clean and pytest 64 passed on ruff 0.16.6 (the version CI currently installs).

🤖 Generated with Claude Code

CI's "Lint with ruff" step installs ruff unpinned (via the `test` extra) and
runs `ruff check .`. The last green build was 2026-07-17; every run since is
red with no responsible code change. A ruff release after that date widened
its default rule set (import-order I001 and others), so untouched files like
gonotego/audio/runner.py now fail.

[tool.ruff] set no explicit select, so it inherited ruff's shifting default.
Pin it to the classic default the code was written against (E4/E7/E9/F) and
keep the intentional E722 ignore. `ruff check .` now passes on ruff 0.16.6,
and stays deterministic across future ruff versions. No source files changed.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@dbieber
dbieber merged commit 8d9cde9 into main Sep 5, 2026
2 checks passed
@dbieber
dbieber deleted the claude/fix-ci-ruff-pin branch September 5, 2026 13:01
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