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

autoflake: remove unused stdlib imports #28

Merged
merged 2 commits into from Mar 15, 2020

Conversation

bhipple
Copy link
Contributor

@bhipple bhipple commented Mar 15, 2020

This runs autoflake --in-place **/*.py to remove unused std library imports.
Note that there are quite a few unused non-stdlib imports as well, but removing
those is slightly riskier as they could have import side-effects, so they should
be done in a second pass with a reduced diff.

https://pypi.org/project/autoflake/

This runs `autoflake --in-place **/*.py` to remove unused std library imports.
Note that there are quite a few unused non-stdlib imports as well, but removing
those is slightly riskier as they could have import side-effects, so they should
be done in a second pass with a reduced diff.

https://pypi.org/project/autoflake/
@bhipple
Copy link
Contributor Author

bhipple commented Mar 15, 2020

CC @AmineChikhaoui @grahamc @adisbladis check it out, CI on pull requests is working! And the first build failed due to black not exiting cleanly. Awesome!

@grahamc grahamc merged commit e31c1d4 into NixOS:master Mar 15, 2020
@grahamc
Copy link
Member

grahamc commented Mar 15, 2020

Yay!

@bhipple bhipple deleted the fix/autoflake-stdlib-imports branch March 15, 2020 21:55
bhipple added a commit to bhipple/nixops-aws that referenced this pull request Mar 22, 2020
Follow-up to NixOS#28, this removes non-stdlib imports with:

    autoflake --in-place --remove-all-unused-imports **/*.py

except for the API `__init__.py` file.
bhipple added a commit to bhipple/nixops-aws that referenced this pull request Mar 22, 2020
Follow-up to NixOS#28, this removes non-stdlib imports with:

    autoflake --in-place --remove-all-unused-imports **/*.py

except for the API `__init__.py` file.

No manual or functional changes, just cleanup.
@bhipple bhipple mentioned this pull request Mar 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants