forked from astral-sh/ruff
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix RUF028 not allowing
# fmt: skip
on match cases (astral-sh#10178)
## Summary Fixes astral-sh#10174 by allowing match cases to be enclosing nodes for suppression comments. `else/elif` clauses are now also allowed to be enclosing nodes. ## Test Plan I've added the offending code from the original issue to the `RUF028` snapshot test, and I've also expanded it to test the allowed `else/elif` clause.
- Loading branch information
1 parent
14ceaec
commit bc467c8
Showing
3 changed files
with
130 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters