Skip to content

Use the pyrefly strict preset - #377

Merged
adamtheturtle merged 2 commits into
mainfrom
unused-ignore-error
Sep 7, 2026
Merged

Use the pyrefly strict preset#377
adamtheturtle merged 2 commits into
mainfrom
unused-ignore-error

Conversation

@adamtheturtle

@adamtheturtle adamtheturtle commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Switches the pyrefly config to preset = "strict" (see https://pyrefly.org/en/docs/configuration/). Strict enables unused-ignore, so stale # pyrefly: ignore comments fail the check, along with implicit-any, missing-override-decorator and others. Any new errors from the stricter checks are fixed in this PR. Same change as VWS-Python/vws-python-mock#3567.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@adamtheturtle
adamtheturtle enabled auto-merge (squash) September 7, 2026 21:47
The strict preset enables unused-ignore along with implicit-any,
missing-override-decorator and other checks.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@adamtheturtle adamtheturtle changed the title Make pyrefly error on unused ignore comments Use the pyrefly strict preset Sep 7, 2026
@adamtheturtle
adamtheturtle merged commit 9dc2f62 into main Sep 7, 2026
18 checks passed
@adamtheturtle
adamtheturtle deleted the unused-ignore-error branch September 7, 2026 22:22
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