-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ruff --fix doesn't fix anything #4041
Comments
You aren't doing anything wrong. Auto-fixes aren't available for all rules. As per the analysis output, the file only contains diagnostics which aren't fixable, so nothing happens. You can refer to the rules documentation and check if a diagnostic code has a fix available or not. In your case there's only |
ah, shame... "line too long" is the most common error and most useful one to have auto fixed |
Usually, a formatter like |
ah I see, so I should still use |
I believe we have plans to add a Ruff formatter, but it's a ways off. For now, |
That's right. For now, we don't autofix line wrapping, and we do recommend using Ruff alongside Black. |
I found the same with the VS Code plugin, it doesn't seem to do anything when you ask it to fix.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: