ruff/crates/ruff_linter
Jane Lewis 8ecdf5369a
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.
2024-03-01 00:36:23 -08:00
..
resources Fix RUF028 not allowing # fmt: skip on match cases (#10178) 2024-03-01 00:36:23 -08:00
src Fix RUF028 not allowing # fmt: skip on match cases (#10178) 2024-03-01 00:36:23 -08:00
__init__.py [pylint] (Re-)Implement import-private-name (C2701) (#9553) 2024-01-16 14:03:11 -05:00
Cargo.toml Bump version to v0.3.0 (#10151) 2024-02-29 16:05:20 +01:00