From 6acf41562f8321446a11e3aacb169866751ffaeb Mon Sep 17 00:00:00 2001 From: nichinichisou Date: Sat, 29 Aug 2026 13:51:04 +0800 Subject: [PATCH] ci: pin the ruff rule set The workflow installs ruff unpinned and `ruff check` ran with whatever rule set that version defaulted to. A newer ruff widened the default, so CI started reporting 184 findings across code that had not changed, and the test job failed before pytest ever ran. Select ruff's documented defaults explicitly. No source changes are required: the tree is already clean under this rule set. Co-Authored-By: Claude Fable 5 --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 0354df9..5be3496 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,3 +25,8 @@ features = ["pyo3/extension-module"] [tool.pytest.ini_options] testpaths = ["tests"] + +[tool.ruff.lint] +# Pin the rule set explicitly so a newer ruff cannot widen it and fail CI on +# code that has not changed. These are ruff's documented defaults. +select = ["E4", "E7", "E9", "F"]