isort 3.7.0. It currently cleanly supports Python 2.6 - 3.4 using pies () to achieve this without ugly hacks and/or py2to3.
To install the kate plugin you must either have pate installed or the very latest version of Kate:s blocks, functions, etc..) and puts them all at the top of the file grouped together by the type of import:
- Future
- Python Standard Library
- Third Party
- Current Python Project
- Explicitly Local (. before import, as in: from . import x)
- Custom Separate Sections (Defined by forced_separate one it is ran, to find a project specific configuration.
Or, if you prefer, you can add an isort section to your project’s setup.cfg ‘balanced_wrapping’ to True in your config or pass the -e option into the command line utility. ‘isort:skip’
import module # isort:skip
or
from xyz import (abc, # isort:skip yo, hey)
To make isort skip an entire file simply add the following to the modules doc string: ‘isort:skip_file’
""")
One great place this can be used is with a pre-commit git hook, such as this one by @acdha:
Which can help to ensure a certain level of code quality throughout a project.
- Download URL:
- Keywords: Refactor,Python,Python2,Python3,Refactoring,Imports,Sort,Clean
- License: MIT
- Requires pies, natsort
- Categories
- Development Status :: 6 - Mature
- :: Libraries
- Topic :: Utilities
- Package Index Owner: timothycrosley
- DOAP record: isort-3.7.0.xml