From 8899124d652fd098decae8bb0369c376fcafa2d3 Mon Sep 17 00:00:00 2001 From: furedea <132188853+furedea@users.noreply.github.com> Date: Sun, 15 Nov 2026 14:14:12 +0900 Subject: [PATCH] build(ruff): require guard clauses instead of else after return Enable RET505, RET506, RET507 and RET508 so the linter rejects an else branch after an if block that ends with return, raise, continue or break. Co-Authored-By: Claude Sonnet 5.5 --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index fd21dd2..2791898 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -104,6 +104,10 @@ select = [ "INP", "C901", "PLR1702", + "RET505", + "RET506", + "RET507", + "RET508", "LOG015", "TRY400", # preview rules: explicit-preview-rules = true needs the full rule IDs