From 9b50b04a1c256b83e00c12ea377ab38a1e84f09c Mon Sep 17 00:00:00 2001 From: BigBodyCobain <43977454+BigBodyCobain@users.noreply.github.com> Date: Tue, 17 Nov 2026 03:25:40 -0700 Subject: [PATCH] Backend lint: spell out the ruff rule set ruff isn't pinned (dev group has ruff>=0.9.0), and ruff 0.17 widened its default rule selection. A lockfile refresh pulled 0.17.5 into the fastapi/python-minor-and-patch Dependabot PR and lint went from 0 to 3074 findings on unchanged code, so the backend tests never ran. Select ruff's long-standing defaults (E4, E7, E9, F) explicitly. Checked clean with both ruff 0.15.7 and 0.17.5. Co-Authored-By: Claude Opus 5.5 --- backend/pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/pyproject.toml b/backend/pyproject.toml index c9eb5e64..d1ba7a07 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -64,6 +64,9 @@ dev = ["pytest>=9.0.3", "pytest-asyncio>=1.4.1.post1", "ruff>=0.9.0", "black>=24 [tool.ruff.lint] # The current backend carries historical style debt in large legacy modules. # Keep CI focused on actionable correctness checks for the v0.9.84 release. +# Rule set is spelled out (ruff's long-standing defaults) so a ruff upgrade +# that widens the default selection doesn't suddenly fail CI. +select = ["E4", "E7", "E9", "F"] ignore = ["E401", "E402", "E701", "E731", "E741", "F401", "F402", "F541", "F811", "F841"] [tool.black]