Make `black` compatible with `ruff` configuration
Closed this issue · 2 comments
purva-thakre commented
black
is a popular formatter for python projects. New contributors will resort to black
.
Instead of having to comment black
configuration is incompatible with ruff
configuration for this project, add a config for black
.
https://docs.astral.sh/ruff/faq/#is-the-ruff-linter-compatible-with-black
https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-via-a-file
purva-thakre commented
Closing this 1 option because the known deviations do cause issues with ruff and pylint.
https://docs.astral.sh/ruff/formatter/black/
For example, when black
moved a docstring to the same line, it did not remove the quotes. Currently, linked PR fails due to below:
purva-thakre commented
Closing this due to #397 (comment)