From 40124d438791f3528ff4847fc9557e9203a03c11 Mon Sep 17 00:00:00 2001 From: David Bieber Date: Sat, 5 Sep 2026 08:30:48 -0400 Subject: [PATCH] Fix red CI: pin ruff rule set to the classic default 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 --- pyproject.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 64ec8c6..bbdf9a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,9 +62,15 @@ test = [ [tool.ruff] line-length = 180 -lint.ignore = ["E722"] exclude = ["scratch"] +[tool.ruff.lint] +# Pin the rule set to the classic ruff default (pyflakes + pycodestyle +# errors) so `ruff check` stays deterministic as new ruff versions widen +# their defaults. E722 (bare except) is used intentionally in a few places. +select = ["E4", "E7", "E9", "F"] +ignore = ["E722"] + [build-system] requires = ["setuptools>=43.0.0", "wheel"] build-backend = "setuptools.build_meta"