Skip to content
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

Add autofix for "unused variable" #1460

Closed
charliermarsh opened this issue Dec 30, 2022 · 1 comment · Fixed by #1683
Closed

Add autofix for "unused variable" #1460

charliermarsh opened this issue Dec 30, 2022 · 1 comment · Fixed by #1683
Assignees
Labels
fixes Related to suggested fixes for violations

Comments

@charliermarsh
Copy link
Member

charliermarsh commented Dec 30, 2022

To start, we can just mimic autoflake, whose logic is relatively simple: https://github.com/PyCQA/autoflake/blob/60eeb31082bf5290341e84a008d5c832fb04fd13/autoflake.py#L664.

@charliermarsh
Copy link
Member Author

(Not "trivial" but could be a good first issue if anyone's interested given that the autoflake logic can mostly be ported over.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixes Related to suggested fixes for violations
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant