Enable ruff format?
Closed this issue · 7 comments
To see how it formats Python source code, run:
ruff format .
I'm -1 to change the current source code and alter Git history for 65 files and ~10k lines of code. Also I don't have a problem with currently-used single quotes or mixed indentation when it helps readability.
Single quotes won't change:
- ruff has always been supporting single quotes,
- black started supporting them recently.
I haven't investigated indentation.
While git blame --ignore-revs-file
is not perfect, it helps ignore changes related to formatting.
Let me run ruff format
and try to minimize changes, so we can see the extent of changes.
indent-style
is either tab
or space
.
Good that ruff supports mixed quotes 👍
I see all the changes in #638, and I still don't think it helps readability, especially about the mixed indentations I mentioned. And changing all these 63 files is not appealing...