From 462f75af535be7afdcebafd9027088380449e88b Mon Sep 17 00:00:00 2001 From: Bethvour Date: Tue, 22 Sep 2026 14:44:58 +0100 Subject: [PATCH] Pin ruff lint rules to the current rule set The project had no ruff config, so it linted with ruff's default rules. Ruff 0.16 widened those defaults from E4/E7/E9/F to roughly two dozen rule families, which is why Dependabot's upgrade (#13) fails CI with 313 findings in unchanged code. Select the ruff 0.15 defaults explicitly so the lint result no longer depends on the installed ruff version. Adopting more rules can happen separately, together with the fixes. Co-Authored-By: Claude Opus 5 --- pyproject.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 151d093..feb1b45 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,3 +58,9 @@ where = ["src"] [tool.pytest.ini_options] pythonpath = ["src"] testpaths = ["tests"] + +[tool.ruff.lint] +# Pin the rule set so a ruff upgrade can't fail CI on untouched code (ruff +# 0.16 widened its defaults). These are the ruff 0.15 defaults; widen the +# selection deliberately, in its own PR, together with the fixes. +select = ["E4", "E7", "E9", "F"]