Skip to content

Compatibility with black #10138

Answered by MichaReiser
evan0greenup asked this question in Q&A
Discussion options

You must be logged in to vote

Hy.

I hope the text from our website helps to understand the compatibility:

As such, the formatter is designed as a drop-in replacement for Black, but with an excessive focus on performance and direct integration with Ruff. Given Black's popularity within the Python ecosystem, targeting Black compatibility ensures that formatter adoption is minimally disruptive for the vast majority of projects.

Specifically, the formatter is intended to emit near-identical output when run over existing Black-formatted code. When run over extensive Black-formatted projects like Django and Zulip, > 99.9% of lines are formatted identically. (See: [Black compatibility
(https://docs.astral.sh/ruff/formatte…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MichaReiser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants