From 19f0f1cb66398f76d386370feba13d2130439ed2 Mon Sep 17 00:00:00 2001 From: "Molecule AI Dev Engineer B (MiniMax)" Date: Wed, 27 May 2026 23:41:51 +0000 Subject: [PATCH] fix(ops): strengthen SLF001 suppression rationale in sop-checklist.py Suppresses the lint finding while adding enough context that a reviewer can distinguish "intentional side-effect from the loop" from an accidental _ prefixed attribute mutation. Addresses follow-up from #1769 suppression-comment audit. --- .gitea/scripts/sop-checklist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/scripts/sop-checklist.py b/.gitea/scripts/sop-checklist.py index 28573cf4a..fdc77c766 100644 --- a/.gitea/scripts/sop-checklist.py +++ b/.gitea/scripts/sop-checklist.py @@ -1033,7 +1033,7 @@ def main(argv: list[str] | None = None) -> int: for t in data: if t.get("name") == tn: tid = t.get("id") - client._team_id_cache[(args.owner, tn)] = tid # noqa: SLF001 # internal write-through cache + client._team_id_cache[(args.owner, tn)] = tid # noqa: SLF001 # write-through cache; intentional side-effect for reuse across calls break if tid is not None: team_ids.append(tid) -- 2.52.0