Migrate to ruff from black/blackdoc/isort/flake8#6341
Conversation
Yes, that’s ok. We previously encountered some issues with blackdoc (though I don’t remeber the exact details), and we had discussed removing it back then. |
In my understanding, |
|
Thank you for the discussion. From my testing, Ruff’s docstring formatter does not recognize Given these findings, I think it might be reasonable to drop blackdoc for now and wait until Ruff can better support Sphinx-style doctest blocks. If there is any better ideas, I would really appreciate your suggestions. |
|
@not522 Could you review this PR? |
Motivation
Adopt Ruff and drop Black / Blackdoc / isort / Flake8.
Summary of Changes
pyproject.tomland remove settings for Black, Blackdoc, isort, and Flake8.format.sh,.pre-commit-config.yaml, andCONTRIBUTING.mdto use Ruff.Notes
[tool.ruff.format]. This is because Ruff’s behavior is not 100% identical to Black/Blackdoc.