astral-sh
ruff
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
[ty] Add README for `ty_completion_bench` CLI tool
main
4 minutes ago
[ty] Add README for `ty_completion_bench` CLI tool
ag/auto-import-perf1
19 minutes ago
[ty] Add README for `ty_completion_bench` CLI tool
ag/auto-import-perf1
27 minutes ago
[ty] Disallow Self in metaclass and static methods
charlie/self2
40 minutes ago
[ty] Add README for `ty_completion_bench` CLI tool
ag/auto-import-perf1
43 minutes ago
Review feedback
charlie/final
48 minutes ago
[`pyupgrade`] Allow shadowing non-builtin bindings (`UP029`) (#22749) Summary -- I thought the fix unsafety example in the [rule docs](https://docs.astral.sh/ruff/rules/unnecessary-builtin-import/#fix-safety) looked a bit suspicious while I was going through more potential default rules today ([playground](https://play.ruff.rs/f1a8b73d-6277-4414-b918-44bbba2863c2)): ```py def str(x): return x from builtins import str str(1) # `"1"` with the import, `1` without ``` Changing the behavior in this way seemed to go beyond fix unsafety and into bug territory. Sure enough, there was an existing bug report in #16182. This PR fixes #16182 (and the fix safety example) by checking that the builtin import that the rule flags is actually shadowing a builtin binding. I also left an exception for `from builtins import *`, but we could consider ignoring that case too. I initially tried reusing `SemanticModel::resolve_name` and `only_binding`, but they are specific to `ExprName`s because that seems to be all that is inserted into the `SemanticModel::resolved_names` map. Test Plan -- New tests based on #16182 and the fix safety docs
main
50 minutes ago
add a test for dangling header comments
brent/lambda-walrus
52 minutes ago
Active Branches
[ty] Disallow Self in metaclass and static methods
last run
40 minutes ago
#22755
CodSpeed Performance Gauge
-4%
[ty] Emit diagnostic for unimplemented abstract method on @final class
last run
48 minutes ago
#22753
CodSpeed Performance Gauge
0%
Preserve required parentheses in lambda bodies
last run
52 minutes ago
#22747
CodSpeed Performance Gauge
0%
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs