Skip to content

Commit

Permalink
Remove hardcoded argument from autoflake linter
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Thomas Dimiduk committed Jul 15, 2022
1 parent 1ef5a17 commit b788abd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/python/pants/backend/python/lint/autoflake/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ async def autoflake_fmt(request: AutoflakeRequest, autoflake: Autoflake) -> FmtR
autoflake_pex,
argv=(
"--in-place",
"--remove-all-unused-imports",
*autoflake.args,
*request.snapshot.files,
),
Expand Down

0 comments on commit b788abd

Please sign in to comment.