blacken-docs icon indicating copy to clipboard operation
blacken-docs copied to clipboard

Support Ruff formatter as an alternative for Black

Open jond01 opened this issue 7 months ago • 3 comments

Description

Ruff formatter can replace Black, and it's much faster: https://docs.astral.sh/ruff/formatter/

I suggest supporting it as an option while keeping Black the default Python formatter. Opting for Ruff can be done via a flag or persistent file configuration.

Implementation-wise it would be different from Black, as Ruff does not have a Python API. It's achievable though.

What do you think?

jond01 avatar Jul 01 '24 20:07 jond01