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

[`pyflakes`] Avoid removing the `format` call when it would change behavior (`F523`)

#25320Merged
Comparing
adityasingh2400:fix-15557
(
10746c6
) with
main
(
572e4b5
)
CodSpeed Performance Gauge
+9%
Improvement
5
Untouched
55
Skipped
65

Benchmarks

65 total
tanjun
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
3.7 s*
colour_science
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
52.4 s*
pandas
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
83.2 s*
static_frame
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
26.2 s*
sympy
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
92.5 s*
altair
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
7.5 s*
multithreaded
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
2.3 s*
freqtrade
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
11.4 s*
pydantic
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
34.8 s*
ty_check_file[cold]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_cold
Skipped
165.9 ms*
ty_check_file[incremental]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_incremental
Skipped
8.8 ms*
DateType
crates/ruff_benchmark/benches/ty.rs::project::datetype::project
Skipped
234.3 ms*
anyio
crates/ruff_benchmark/benches/ty.rs::project::anyio::project
Skipped
1.4 s*
hydra-zen
crates/ruff_benchmark/benches/ty.rs::project::hydra::project
Skipped
3.6 s*
attrs
crates/ruff_benchmark/benches/ty.rs::project::attrs::project
Skipped
604.3 ms*
ty_micro[complex_constrained_attributes_3]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_3
Skipped
78.1 ms*
ty_micro[literal_equality_fallthrough_guarded_any]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_literal_equality_fallthrough_guarded_any
Skipped
179 ms*
ty_micro[gradual_vararg_call]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_gradual_vararg_call
Skipped
71.9 ms*
ty_micro[large_union_narrowing]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_large_union_narrowing
Skipped
540.1 ms*
ty_micro[literal_match_fallthrough]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_literal_match_fallthrough
Skipped
77.7 ms*
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_tuple_implicit_instance_attributes
Skipped
71.7 ms*
ty_micro[pydantic_core_schema_dict]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_pydantic_core_schema_dict
Skipped
421.1 ms*
ty_micro[literal_match_fallthrough_guarded_any]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_literal_match_fallthrough_guarded_any
Skipped
272.6 ms*
ty_micro[typeis_narrowing]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_typeis_narrowing
Skipped
202 ms*
ty_micro[typevar_mapping_accumulation]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_typevar_mapping_large_accumulation
Skipped
1.2 s*

Commits

Click on a commit to change the comparison range
Base
main
572e4b5
-0.03%
[`pyflakes`] Implement the ideal `F523` fix when the `.format` call has no remaining replacement fields
0c706a0
19 days ago
by adityasingh2400
-0.05%
Keep the .format call when the string contains braces
ba56826
12 days ago
by adityasingh2400
+9%
revert other test changes
10746c6
12 days ago
by ntBre
© 2026 CodSpeed Technology
Home Terms Privacy Docs