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

[`refurb`] Do not add `abc.ABC` if already present (`FURB180`)

#22234Merged
Comparing
akawd:issue/17162/do-not-add-abc-if-already-added
(
df931e0
) with
main
(
fcbf6f1
)
CodSpeed Performance Gauge
0%
Untouched
30
Skipped
23

Benchmarks

23 total
pandas
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
63.6 s*
altair
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
4.5 s*
tanjun
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
2.5 s*
freqtrade
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
7.8 s*
pydantic
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
7.3 s*
multithreaded
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
1.2 s*
static_frame
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
21.1 s*
sympy
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
51.3 s*
colour_science
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
88.8 s*
hydra-zen
crates/ruff_benchmark/benches/ty.rs::project::hydra::project
Skipped
1.2 s*
DateType
crates/ruff_benchmark/benches/ty.rs::project::datetype::project
Skipped
239.3 ms*
attrs
crates/ruff_benchmark/benches/ty.rs::project::attrs::project
Skipped
439.2 ms*
ty_check_file[incremental]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_incremental
Skipped
6 ms*
anyio
crates/ruff_benchmark/benches/ty.rs::project::anyio::project
Skipped
1.2 s*
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_tuple_assignments
Skipped
66.3 ms*
ty_micro[many_enum_members_2]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_enum_members_2
Skipped
157 ms*
ty_micro[complex_constrained_attributes_2]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_2
Skipped
68.2 ms*
ty_micro[many_string_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_string_assignments
Skipped
77.4 ms*
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_tuple_implicit_instance_attributes
Skipped
68.3 ms*
ty_micro[many_enum_members]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_enum_members
Skipped
126.6 ms*
ty_micro[complex_constrained_attributes_1]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_1
Skipped
68.4 ms*
ty_micro[complex_constrained_attributes_3]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_3
Skipped
71.8 ms*
ty_check_file[cold]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_cold
Skipped
131.2 ms*

Commits

Click on a commit to change the comparison range
Base
main
fcbf6f1
+0.08%
[refurb] Do not add abc.ABC if already present
50a2f2e
7 months ago
by foobar2016
-0.04%
Remove redundant commas.
740da9e
6 months ago
by foobar2016
-0.07%
Comment makes the fix unsafe.
a209175
6 months ago
by foobar2016
-0.13%
The test case added for a rule.
9c42918
6 months ago
by foobar2016
+0.09%
Update crates/ruff_linter/src/rules/refurb/rules/metaclass_abcmeta.rs
df931e0
6 months ago
by ntBre
© 2026 CodSpeed Technology
Home Terms Privacy Docs