Astral has released the Ruff formatter in Beta — a Python code formatter written in Rust that is over 30x faster than Black and 100x faster than YAPF. It achieves >99.9% compatibility with Black on real-world projects like Django and Zulip, making it a drop-in replacement. Key features include support for Python 3.12, Jupyter notebook formatting, VS Code and JetBrains editor integrations, and a few additional configuration options (quote style, indentation). The formatter is built into the existing Ruff CLI, advancing Astral's goal of a unified Cargo-like Python toolchain.

8m read timeFrom astral.sh
Post cover image
Table of contents
Why Build a Formatter? #Production-Ready #The Astral Toolchain #Acknowledgements #

Sort: