Ruff is designed to be used alongside a formatter (like Ruff's own formatter, or Black) and, as such, will defer implementing stylistic rules that are obviated by automated formatting.
In fact, the current pre-commit setup actively prevents me from committing a file where black and ruff format conflict with each other.
This is why I propose to remove black from this project, since we already have ruff-format.
Also, ruff has support for I rules that are comparable with isort. Since isort has no profile for ruff-format (only for black) we should also switch over to using these rules instead of using isort separately.
I would appreciate if we can handle this PR with rather high priority, as it's currently blocking commits (see above). Thank you.
black is not intended to be used next to ruff-format:
In fact, the current pre-commit setup actively prevents me from committing a file where black and ruff format conflict with each other.
This is why I propose to remove
black
from this project, since we already haveruff-format
.Also,
ruff
has support forI
rules that are comparable withisort
. Sinceisort
has no profile forruff-format
(only forblack
) we should also switch over to using these rules instead of using isort separately.I would appreciate if we can handle this PR with rather high priority, as it's currently blocking commits (see above). Thank you.