Skip to content

Commit 2928c6c

Browse files
Make pyrefly error on unused ignore comments (#1898)
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 <noreply@anthropic.com>
1 parent 8ece3c0 commit 2928c6c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎pyproject.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ plugins = [
387387

388388
[tool.pyrefly]
389389
errors.non-exhaustive-match = "error"
390+
errors.unused-ignore = "error"
390391

391392
[tool.pyright]
392393
typeCheckingMode = "strict"

0 commit comments

Comments
 (0)