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

Allow using --import option with Autoflake (Cherry-pick of #16192) #16275

Merged
merged 1 commit into from
Jul 22, 2022

Conversation

Eric-Arellano
Copy link
Contributor

The linter is currently hardcoded to do "--remove-all-unused-imports", which
unfortunately does not work for all repos since imports can have side effects.
With this removed a user can still provide the argument if they desire it, but
it is possible to run without it.

[ci skip-build-wheels]
[ci skip-rust]

The linter is currently hardcoded to do "--remove-all-unused-imports", which
unfortunately does not work for all repos since imports can have side effects.
With this removed a user can still provide the argument if they desire it, but
it is possible to run without it.

[ci skip-build-wheels]
[ci skip-rust]
# Conflicts:
#	src/python/pants/option/option_types.py
@Eric-Arellano Eric-Arellano added the category:bugfix Bug fixes for released features label Jul 22, 2022
@Eric-Arellano
Copy link
Contributor Author

FYI @tdimiduk

@Eric-Arellano Eric-Arellano merged commit ebf92eb into pantsbuild:2.13.x Jul 22, 2022
@Eric-Arellano Eric-Arellano deleted the cp-autoflake-13 branch July 22, 2022 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants