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

Keep lambda parameters on one line and parenthesize the body if it expands

#21385Merged
Comparing
brent/indent-lambda-params
(
95301b3
) with
main
(
3ac58b4
)
CodSpeed Performance Gauge
0%
Untouched
30
Skipped
13
Archived
9

Benchmarks

13 total
DateType
crates/ruff_benchmark/benches/ty.rs::project::datetype::project
Skipped
251.6 ms*
ty_check_file[cold]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_cold
Skipped
134.2 ms*
anyio
crates/ruff_benchmark/benches/ty.rs::project::anyio::project
Skipped
1.4 s*
ty_check_file[incremental]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_incremental
Skipped
6.7 ms*
ty_micro[complex_constrained_attributes_1]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_1
Skipped
67.3 ms*
hydra-zen
crates/ruff_benchmark/benches/ty.rs::project::hydra::project
Skipped
1.3 s*
ty_micro[complex_constrained_attributes_2]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_2
Skipped
67.4 ms*
ty_micro[many_enum_members]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_enum_members
Skipped
125.4 ms*
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_tuple_implicit_instance_attributes
Skipped
67.2 ms*
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_tuple_assignments
Skipped
65.8 ms*
ty_micro[many_string_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_string_assignments
Skipped
84.8 ms*
attrs
crates/ruff_benchmark/benches/ty.rs::project::attrs::project
Skipped
440.1 ms*
ty_micro[complex_constrained_attributes_3]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_3
Skipped
70.7 ms*

Commits

Click on a commit to change the comparison range
Base
main
3ac58b4
-0.25%
add a couple more test cases
89dc1ad
3 months ago
by ntBre
+0.22%
add too-eagerly parenthesized case from ecosystem
9785066
3 months ago
by ntBre
-0.19%
fix snapshot changes for cases with comments
6f6c09c
3 months ago
by ntBre
0%
fix another ecosystem call expansion
9ef9d03
3 months ago
by ntBre
-0.05%
add wrapping case from the ecosystem check
258b1fd
3 months ago
by ntBre
+0.07%
remove comment
7dddcc8
3 months ago
by ntBre
+0.07%
Merge branch 'main' into brent/indent-lambda-params
1a3e385
2 months ago
by ntBre
0%
mirror comment handling from `maybe_parenthesize_expression`
08b1da3
2 months ago
by ntBre
0%
add some more tests
dfd3460
2 months ago
by ntBre
+0.01%
improve dangling header comment placement
43b53ed
2 months ago
by ntBre
0%
clippy
dc240a1
2 months ago
by ntBre
-0.02%
fix assignment instability without parameters too
f20f3e0
2 months ago
by ntBre
+0.03%
format new dangling comments
e8540d9
2 months ago
by ntBre
-0.1%
Merge branch 'main' into brent/indent-lambda-params
05ff8f5
2 months ago
by ntBre
+0.07%
move preview comment handling mostly into placement.rs
9f9b76b
2 months ago
by ntBre
+0.08%
factor out FormatBody
9d7d94c
2 months ago
by ntBre
-0.14%
reposition dangling comments
0f1ea90
2 months ago
by ntBre
+0.1%
move all body formatting to FormatBody
b80fdfa
2 months ago
by ntBre
-0.01%
improve after_parameters_end_of_line name and docs
95301b3
2 months ago
by ntBre
© 2026 CodSpeed Technology
Home Terms Privacy Docs