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

[`pylint`] Implement `swap-with-temporary-variable` (`PLR1712`)

#22205Merged
Comparing
Bnyro:temporary-variable-swap
(
c08dea5
) with
main
(
97acaae
)
CodSpeed Performance Gauge
0%
Untouched
30
Skipped
24

Benchmarks

24 total
static_frame
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
31.6 s*
sympy
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
71.5 s*
tanjun
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
2.8 s*
pandas
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
83.3 s*
altair
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
5.1 s*
pydantic
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
7.5 s*
freqtrade
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
9.2 s*
multithreaded
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
1.3 s*
colour_science
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
134 s*
attrs
crates/ruff_benchmark/benches/ty.rs::project::attrs::project
Skipped
476.7 ms*
DateType
crates/ruff_benchmark/benches/ty.rs::project::datetype::project
Skipped
211.6 ms*
hydra-zen
crates/ruff_benchmark/benches/ty.rs::project::hydra::project
Skipped
1.3 s*
ty_micro[complex_constrained_attributes_1]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_1
Skipped
67.7 ms*
ty_micro[many_string_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_string_assignments
Skipped
77.5 ms*
ty_micro[many_enum_members_2]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_enum_members_2
Skipped
162.1 ms*
ty_check_file[cold]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_cold
Skipped
146.7 ms*
ty_micro[very_large_tuple]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_very_large_tuple
Skipped
69.2 ms*
ty_check_file[incremental]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_incremental
Skipped
8 ms*
ty_micro[complex_constrained_attributes_3]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_3
Skipped
73.5 ms*
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_tuple_assignments
Skipped
65.5 ms*
ty_micro[many_enum_members]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_enum_members
Skipped
127.1 ms*
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_tuple_implicit_instance_attributes
Skipped
67.5 ms*
ty_micro[complex_constrained_attributes_2]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_2
Skipped
67.9 ms*
anyio
crates/ruff_benchmark/benches/ty.rs::project::anyio::project
Skipped
1.2 s*

Commits

Click on a commit to change the comparison range
Base
main
97acaae
-0.13%
[`pylint`]: Implement `swap-with-temporary-variable` (PLR1712)
c08dea5
4 months ago
by Bnyro
© 2026 CodSpeed Technology
Home Terms Privacy Docs