If I wanted to use ruff here I’d write a wrapper script (shim) called black
and put that on my path.
It’s a bit sad if we do need to add options to Django here. It took something like 3years to get Black agreed to and in, and the promise was “No more discussions about formatting”. Having to handle implementation fragmentation seems quite a lot like the old can of worms. So, I guess I’d see how far we could lean into “Just use a shim” before wanting to add options here.
The other approach would be all the options, but that adds a lot of complexity to Django, largely duplicating what’s already possible with shell tools.