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

`RUF010`: Mark fix as unsafe when it deletes a comment

#24270Merged
Comparing
tranhoangtu-it:fix/ruf010-unsafe-when-comment-deleted
(
bed808c
) with
main
(
0aa8626
)
CodSpeed Performance Gauge
0%
Untouched
60
Skipped
47

Benchmarks

47 total
pandas
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
69.4 s*
tanjun
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
2.9 s*
altair
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
5.2 s*
static_frame
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
21.4 s*
sympy
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
63.2 s*
multithreaded
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
1.3 s*
freqtrade
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
7.9 s*
pydantic
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
7.4 s*
colour_science
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
58.8 s*
hydra-zen
crates/ruff_benchmark/benches/ty.rs::project::hydra::project
Skipped
1.1 s*
attrs
crates/ruff_benchmark/benches/ty.rs::project::attrs::project
Skipped
468.9 ms*
DateType
crates/ruff_benchmark/benches/ty.rs::project::datetype::project
Skipped
224.4 ms*
ty_micro[complex_constrained_attributes_3]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_3
Skipped
77.7 ms*
ty_micro[complex_constrained_attributes_2]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_2
Skipped
71.4 ms*
ty_micro[many_string_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_string_assignments
Skipped
82 ms*
ty_micro[large_isinstance_narrowing]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_large_isinstance_narrowing
Skipped
146.7 ms*
ty_micro[typeis_narrowing]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_typeis_narrowing
Skipped
172.7 ms*
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_tuple_assignments
Skipped
69.3 ms*
ty_micro[pandas_tdd]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_pandas_tdd
Skipped
251.9 ms*
ty_check_file[cold]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_cold
Skipped
152.2 ms*
ty_check_file[incremental]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_incremental
Skipped
8.2 ms*
ty_micro[very_large_tuple]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_very_large_tuple
Skipped
73.4 ms*
ty_micro[complex_constrained_attributes_1]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_1
Skipped
71.6 ms*
ty_micro[many_enum_members]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_enum_members
Skipped
94.6 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
0aa8626
+0.01%
fix(RUF010): mark fix as unsafe when it deletes a comment
0646d9b
4 months ago
by tranhoangtu-it
+0.02%
fix: move ascii shadow into nested scope per review
b843f37
4 months ago
by tranhoangtu-it
-0.05%
More tests
bed808c
4 months ago
by MichaReiser
© 2026 CodSpeed Technology
Home Terms Privacy Docs