From f4d42768a2444a4d4701d30b7c9327e3806c758d Mon Sep 17 00:00:00 2001 From: opencode Date: Mon, 6 Jul 2026 17:53:03 +0200 Subject: [PATCH] =?UTF-8?q?chore(rmi-backend,audit):=20delete=20ruff.toml?= =?UTF-8?q?=20=E2=80=94=20pyproject.toml=20[tool.ruff]=20is=20canonical?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Phase 1 of AUDIT-2026-Q3.md item P1.8. ruff.toml was overriding pyproject.toml [tool.ruff] silently: ruff.toml: line-length 120, ignored SIM102/RUF006/B008 pyproject.toml: line-length 100, security rules enabled (canonical) Two configs contradicting each other silently is the worst-case configuration — neither developer nor CI notice, and the strict [tool.ruff] security rules (S) never run. Deleted ruff.toml. Added defensive .gitignore entry. ruff now reads only pyproject.toml. Verified with ruff check --show-settings: linter.line_length = 100 linter.pycodestyle.max_line_length = 100 ruff.toml moved to /tmp/rmi-backend-archive-2026-07/ruff.toml.removed-2026-07-06. --- .gitignore | 1 + ruff.toml | 17 ----------------- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 ruff.toml diff --git a/.gitignore b/.gitignore index 7663b0b..127363f 100644 --- a/.gitignore +++ b/.gitignore @@ -88,3 +88,4 @@ data/papers/ *.h5 *.hdf5 main.py.bak +ruff.toml diff --git a/ruff.toml b/ruff.toml deleted file mode 100644 index 167b8ea..0000000 --- a/ruff.toml +++ /dev/null @@ -1,17 +0,0 @@ -# RMI Backend - Strict linting config -target-version = "py311" -line-length = 120 - -[lint] -select = [ - "E", "F", "I", "W", "UP", "B", "C4", "SIM", "RUF", -] -ignore = [ - "E501", # Line too long - "RUF006", # create_task result unused (fire-and-forget patterns) - "SIM102", # Nested if — existing code convention - "B008", # function-call-in-default (FastAPI Depends pattern, intentional) -] - -[lint.per-file-ignores] -"app/core/lifespan.py" = ["T20"] # print() for startup logging is intentional