Closed chriszs closed 4 months ago
There do seem to be some deliberate differences from Back: https://docs.astral.sh/ruff/formatter/black/
In some initial testing on the codebase, the differences seemed exceedingly minor (Ruff on the right):
Shouldn't we leave this open for review, @chriszs ? It sounds like it absolutely merits a look ... ?
It does! But is there a path to acceptance? If the issue is going to wind up stale, I'd rather close it and bring it back out later so that issues reflect stuff we can act on. I want to be sensitive to the project lifecycle, which seems to be maintenance as part of a larger suite of stuff, where consistency might matter more than other considerations.
I noticed that pre-commit was running slowly on a minor change. I've recently checked out Ruff, which claims "drop-in parity with Flake8, isort, and Black," each of which are separate steps in pre-commit right now, while benchmarking at much higher speeds. It also seems to have some pyupgrade compatibility.