0

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:)

Hubert
  • 142
  • 1
  • 12

1 Answers1

1

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.

Sebastian Kreft
  • 7,819
  • 3
  • 24
  • 41