Avatar for the astral-sh user
astral-sh
ruff
BlogDocsChangelog

[`ruff`] Skip `RUF051` if `else`/`elif` block is present

#20705Merged
Comparing
njhearp:RUF051-else-branch
(
432a426
) with
main
(
2d44ad2
)
CodSpeed Performance Gauge
0%
Untouched
30
Skipped
13
Archived
9

Benchmarks

13 total
ty_micro[complex_constrained_attributes_2]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_2
Skipped
63.8 ms*
ty_micro[many_string_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_string_assignments
Skipped
73.3 ms*
ty_micro[complex_constrained_attributes_3]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_3
Skipped
66.7 ms*
ty_check_file[incremental]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_incremental
Skipped
5.1 ms*
ty_micro[many_enum_members]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_enum_members
Skipped
95.7 ms*
anyio
crates/ruff_benchmark/benches/ty.rs::project::anyio::project
Skipped
877.2 ms*
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_tuple_implicit_instance_attributes
Skipped
63.8 ms*
DateType
crates/ruff_benchmark/benches/ty.rs::project::datetype::project
Skipped
183.3 ms*
attrs
crates/ruff_benchmark/benches/ty.rs::project::attrs::project
Skipped
398.7 ms*
ty_micro[complex_constrained_attributes_1]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_1
Skipped
64 ms*
hydra-zen
crates/ruff_benchmark/benches/ty.rs::project::hydra::project
Skipped
922.4 ms*
ty_check_file[cold]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_cold
Skipped
122.9 ms*
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_tuple_assignments
Skipped
63 ms*

Commits

Click on a commit to change the comparison range
Base
main
2d44ad2
-0.04%
Ignore `else` block for `RUF051`
432a426
10 months ago
by njhearp
© 2026 CodSpeed Technology
Home Terms Privacy Docs