Skip to content

Open-source personal finance manager. Self-hosted, privacy-first.

chore: pin ruff's lint rule selection (#706)

Tássio Noronhaa975e58cc9f6
diff --git a/backend/pyproject.toml b/backend/pyproject.toml
index cb12c732..6b4322f1 100644
--- a/backend/pyproject.toml
+++ b/backend/pyproject.toml
@@ -95,4 +95,8 @@ line-length = 100
target-version = "py311"
[tool.ruff.lint]
+# Ruff 0.16 widened its default rule set, so leaving the selection implicit
+# means a ruff bump silently changes what CI enforces. Pin the set we lint
+# against (ruff's pre-0.16 default) and change it deliberately, not by upgrade.
+select = ["E4", "E7", "E9", "F"]
ignore = ["E711", "E712"]