Hey folks, if has been a while since we introduced black for formatting python source code.
Keeping a consistent look and feel across the project, I think has been a success.
But there is a new kid in town: ruff [0]
What sticks out to me, is not so much that it is “10-100x faster than existing linters (like Flake8) and formatters (like Black)”, but that it consolidates the tasks of black, isort and flake8 into one tool, that it allows to auto-fix more issues than black alone and that it can even serve as a language-server (lsp) for better editor support (neovim in my case).
The formatting decisions taken by ruff are intentionally almost the same as by black.
I expect us to eventually switch completely to using ruff. But for now I will prepare a showcase for this transition in the Pulp CLI repository. So stay tuned.
[0] Ruff