astral-sh
ruff
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fixup
gankra/rootdoc
52 minutes ago
[ty] Enable even more goto-definition on inlay hints (#21950) ## Summary Working on py-fuzzer recently (AKA, a Python project!) reminded me how cool our "inlay hint goto-definition feature" is. So this PR adds a bunch more of that! I also made a couple of other minor changes to type display. For example, in the playground, this snippet: ```py def f(): ... reveal_type(f.__get__) ``` currently leads to this diagnostic: ``` Revealed type: `<method-wrapper `__get__` of `f`>` (revealed-type) [Ln 2, Col 13] ``` But the fact that we have backticks both around the type display and inside the type display isn't _great_ there. This PR changes it to ``` Revealed type: `<method-wrapper '__get__' of function 'f'>` (revealed-type) [Ln 2, Col 13] ``` which avoids the nested-backticks issue in diagnostics, and is more similar to our display for various other `Type` variants such as class-literal types (`<class 'Foo'>`, etc., not ``<class `Foo`>``). ## Test Plan inlay snapshots added; mdtests updated
main
2 hours ago
Document known lambda formatting deviations from Black (#21954) Summary -- Following #8179, we now format long lambda expressions a bit more like Black, preferring to keep long parameter lists on a single line, but we go one step further to break the body itself across multiple lines and parenthesize it if it's still too long. This PR documents both the stable deviation that breaks parameters across multiple lines, and the new preview deviation that breaks the body instead. I also fixed a couple of typos in the section immediately above my addition. Test Plan -- I tested all of the snippets here against `main` for the preview behavior, our playground for the stable behavior, and Black's playground for their behavior
main
2 hours ago
[ty] fix hover type on named expression target (#21952) ## Summary What it says on the tin. ## Test Plan Added hover test.
main
2 hours ago
[ty] fix hover type on named expression target
cjm/target
2 hours ago
Use datatest for parser tests (#21936)
micha/format-datatest
2 hours ago
Restore use order
micha/parser-datatest
3 hours ago
Bump benchmark dependencies (#21951)
main
3 hours ago
Active Branches
[ty] update implicit root docs
last run
52 minutes ago
#21955
CodSpeed Performance Gauge
0%
Use datatest for formatter tests
last run
2 hours ago
#21933
CodSpeed Performance Gauge
0%
Fluent formatting of method chains
last run
4 hours ago
#21369
CodSpeed Performance Gauge
0%
© 2025 CodSpeed Technology
Home
Terms
Privacy
Docs