Organizing imports

I'm thinking of writing a plugin for this, though unfortunately it looks like Pythons are written in Java. Though that shouldn't be surprising.

Anyway, I'd like something that organizes imports at the top of your file. For example, it might put Standard Library imports first, then external libraries, and finally local imports. Or just sort them alphabetically.

2 comments
Comment actions Permalink

This feature is planned for a future version of PyCharm:

http://youtrack.jetbrains.net/issue/PY-2367

You can implement it as a plugin, but indeed it needs to be written in Java.

0
Comment actions Permalink

Oh nice. With that coming up in the future, I'll just be patient. Exciting stuff.

0

Please sign in to leave a comment.