-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
STYLE: Add auto fix to ruff #51814
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
Comments
sure, if there's a way to not auto-fix E721, I'm all for it |
ruff allows to black-list unfixable rules unfixable = ["E721"] |
awesome! is there anything ruff can't do? 😄 |
I would like to try doing this, and if we decide to move forward with it ( may need some assistance...). |
sure go ahead |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How about add fix/autofix ruff?
I recently worked on STYLE enable ruff TCH and found that ruff reports some error could (eg: Trailing whitespace, ) been easily autofixed, by adding
--fix
(or more specific flags) as argument to config.I must admit that these errors can also be fixed manually. However, if the automation does not significantly slow down the process, why not let them be fixed automatically? It is worth noting that automatic fixes are still being developed and modified, and whether they should be used or not may require further discussion.
Some maybe related:
ruff-tried-to-fix-something-but-it-broke-my-code?
Usage - Ruff
Configuration - Ruff
The text was updated successfully, but these errors were encountered: