Skip to content

Commit 1d0d7c4

Browse files
adamtheturtleclaude
andcommitted
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 <noreply@anthropic.com>
1 parent 1184888 commit 1d0d7c4

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
@@ -405,6 +405,7 @@ plugins = [
405405

406406
[tool.pyrefly]
407407
errors.non-exhaustive-match = "error"
408+
errors.unused-ignore = "error"
408409

409410
[tool.pyright]
410411
typeCheckingMode = "strict"

0 commit comments

Comments
 (0)