From 1d0d7c4e8da39746f0a4575384f3b082121fdb8d Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Mon, 7 Sep 2026 22:39:37 +0100 Subject: [PATCH] Make pyrefly error on unused ignore comments Pyrefly's unused-ignore rule is silent by default, so stale `# pyrefly: ignore` comments go unnoticed after upgrades. Co-Authored-By: Claude Fable 5.1 --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index df40974cd..cb077b1be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -405,6 +405,7 @@ plugins = [ [tool.pyrefly] errors.non-exhaustive-match = "error" +errors.unused-ignore = "error" [tool.pyright] typeCheckingMode = "strict"