Ruff v0.9.0 introduces a new 2025 formatter style guide with several key changes: f-string expressions are now formatted, single-line implicitly concatenated strings are merged where possible, assert statement messages are preferred for line-breaking over expressions, fewer parentheses are added around return annotations, and if guards in match/case statements are automatically parenthesized. The release also stabilizes seven lint rules (A005, A006, FURB188, PLR1716, RUF032, RUF033, RUF034), improves autofix behavior for two rules (PYI041, PYI016), and resolves a longstanding formatter incompatibility with the ISC001 rule.

8m read timeFrom astral.sh
Post cover image
Table of contents
The Ruff 2025 style guide #Rule stabilizations #Other behavior stabilizations #Thank you! #

Sort: