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

Clean up imports without splitting into multiple lines #7

Closed
collinanderson opened this issue May 5, 2014 · 4 comments · Fixed by #15
Closed

Clean up imports without splitting into multiple lines #7

collinanderson opened this issue May 5, 2014 · 4 comments · Fixed by #15

Comments

@collinanderson
Copy link

I noticed if I have code like:

from xyz import b, c, unused, a

autoflake converts it to:

from xyz import a
from xyz import b
from xyz import c

Is there anyway to keep it on one line?

from xyz import a, b, c
@myint
Copy link
Member

myint commented May 5, 2014

For simplicity, autoflake splits them up and then removes the particular import that pyflakes complains about. If anyone wants to send a patch for keeping them in one line, I'm willing to merge it in.

Thanks

@myint myint closed this as completed May 5, 2014
@myint
Copy link
Member

myint commented May 6, 2014

I'll leave this open for visibility.

@myint myint reopened this May 6, 2014
@myint myint changed the title cleanup imports without splitting on to multiple lines? Clean up imports without splitting into multiple lines May 16, 2014
@astrofrog
Copy link

I support this request - ran into this today

@spaceone
Copy link

Vote

adhikasp added a commit to adhikasp/autoflake that referenced this issue Apr 11, 2017
adhikasp added a commit to adhikasp/autoflake that referenced this issue Apr 12, 2017
adhikasp added a commit to adhikasp/autoflake that referenced this issue Apr 17, 2017
adhikasp added a commit to adhikasp/autoflake that referenced this issue Apr 18, 2017
@myint myint closed this as completed in #15 Apr 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants