Skip to content

When to use ruff format versus ruff --fix #9048

Closed Answered by zanieb
paulf81 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! ruff --fix is an alias for ruff 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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@paulf81
Comment options

Answer selected by zanieb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants