Reputation: 152
I am looking for a plugin which would help me format the order of imports in my python file following given guidelines: Imports should be grouped in the following order:
1 Standard library imports.
2 Related third party imports.
3 Local application/library specific imports.
Please recommend something:)
Upvotes: 0
Views: 343
Reputation: 8189
One software that sorts imports according to the rules you provided (PEP8) is isort
, and it also has vim
plugins. Check the list of available plugins: https://github.com/timothycrosley/isort/wiki/isort-Plugins.
Upvotes: 1