Ruff yields the same result as Black for 99+% of formatted lines, and it can do both formatting and checking, so this opens the way to replace both Black, flake8 (and all its plugins), isort, flynt... by a single dependency with more capabilites (such as preventing the class of errors fixed in D18896)
The python changes are mostly automated formatting done by the new linter, except for:
- same line comments move to previous line
- accidental trailing , removed, to avoid pointless reformatting. These had no effect, turning the result of the line into a tuple then immediately dismissing it
Depends on D18912