Skip to content

Add remove-all-unused-imports to autoflake invocation#210

Merged
jcugat merged 4 commits intoencode:masterfrom
cdeler:change-autoflake-arguments
Oct 5, 2020
Merged

Add remove-all-unused-imports to autoflake invocation#210
jcugat merged 4 commits intoencode:masterfrom
cdeler:change-autoflake-arguments

Conversation

@cdeler
Copy link
Copy Markdown
Contributor

@cdeler cdeler commented Oct 4, 2020

flake8 during script/test invocation raises an error if we have unused imports.

As script/lint already calls autoflake, we can add --remove-all-unused-imports --ignore-init-module-imports to the call, which might make development process easier

@cdeler cdeler changed the title Added remove-all-unused-imports to autoflake invocation Add remove-all-unused-imports to autoflake invocation Oct 4, 2020
@cdeler cdeler requested a review from a team October 4, 2020 12:54
Comment thread scripts/lint Outdated
cdeler and others added 2 commits October 5, 2020 17:24
@jcugat jcugat merged commit 995f647 into encode:master Oct 5, 2020
@jcugat
Copy link
Copy Markdown
Contributor

jcugat commented Oct 5, 2020

As a followup we might want to add it to httpx too if we find it useful here 👍

@cdeler cdeler deleted the change-autoflake-arguments branch October 5, 2020 20:15
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.

2 participants