-
I've been using ruff and ruff format for cleaning up python code, thank you for the excellent tools! I had a question, I notice that running ruff format corrects some issues, while ruff --fix seems to address others. For example, sorting the imports seems to be done by ruff --fix but not ruff format. Is the correct usage to run both in succession? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! |
Beta Was this translation helpful? Give feedback.
Hi!
ruff --fix
is an alias forruff check --fix
which is for the ruff linter.ruff format
uses the ruff formatter. It may be helpful to read the linter / formatter documentation to understand the differences. For now, yeah you should run them both. In the future, we'll have a command that does both #8232