blacken-docs
blacken-docs copied to clipboard
Support Ruff formatter as an alternative for Black
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?