ruff
8ecdf536 - Fix RUF028 not allowing `# fmt: skip` on match cases (#10178)

Commit
1 year ago
Fix RUF028 not allowing `# fmt: skip` on match cases (#10178) ## Summary Fixes #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.
Author
Parents
Loading