-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Implement autoflake
#1647
Comments
I'm hesitant to add autofix for I'd be open to autofixing |
For now, to be safe, we're only removing keys with duplicate _values_. See: #1647.
Happy with this for now. I'm not planning to do star imports with the current approach, and we already do some subset of |
What about trying the https://github.com/asmeurer/removestar approach for creating an |
The last item
is already implemented as https://beta.ruff.rs/docs/rules/unnecessary-pass/ |
Why is F841 considered Exampleruff check --fix --config pyproject.toml
gpio/models/pin.py:
159:9 F841 Local variable `unused` is assigned to but never used
Found 1 error.
No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option). This was a test to see if the behavior of Ruff is the same as autoflake, and it is not. autoflake removes it, Ruff requires the addition of Ruff version: ruff 0.4.4 (3e8878a 2024-05-09) |
F401
)F601
)F841
)F403
)pass
statementsThe text was updated successfully, but these errors were encountered: