Disable `black` formatter
Closed this issue · 1 comments
The default line length for black
is not compatible with those used by ruff
for this repo.
https://docs.astral.sh/ruff/faq/
ruff
does use black
as one of its rules for ruff format
but when black
is used on its own, it will make changes in a way that are not compatible with the toml
file.
Line 56 in d1049fe
We want to disable using black
on its own.
@vprusso There are two different ways to resolve this.
Option 1: I think we will have to add black
as a dependency. I want to use --exclude
as a configuration option for black where we ask it to ignore the entire project.
https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#exclude
Option 2: We could skip adding it as a dependency if I first check black
is installed or not. If it is, then we choose the --exclude
option. I'll search around for how this check would work in the toml
file.