Skip to content

Make pyrefly error on unused ignore comments - #2570

Merged
adamtheturtle merged 1 commit into
mainfrom
unused-ignore-error
Sep 7, 2026
Merged

Make pyrefly error on unused ignore comments#2570
adamtheturtle merged 1 commit into
mainfrom
unused-ignore-error

Conversation

@adamtheturtle

Copy link
Copy Markdown
Member

Sets errors.unused-ignore = "error" in the pyrefly config. This rule is silent by default (not even a warning), so # pyrefly: ignore comments that no longer suppress anything go unnoticed after pyrefly upgrades. Same change as VWS-Python/vws-python-mock#3567.

🤖 Generated with Claude Code

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>
@adamtheturtle
adamtheturtle merged commit 1f920df into main Sep 7, 2026
13 checks passed
@adamtheturtle
adamtheturtle deleted the unused-ignore-error branch September 7, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant