Depends on PyKDE/PyQt
|Submitted: Sep 8 2013|
Updated: 2 days ago
isort your python imports for you so you don\'t have to.
This kate plugin enables you to sort Python imports from within Kate using isort:
isort is a Python utility / library to sort imports alphabetically, and automatically separated into sections.
Requires the latest version of Kate or the Pate Kate extensions to be installed.
- Fixed a bug that caused isort to incorrectly wrap imports, when they where wrapped after a period.
- Ensures inline comments placed on import lines follow the pep8 style guidelines.
- Adds support for nested comments within import definitions.
- Fixes an issue setting config options to False.
- Added 'thread' to the known standard library.
- Improved how settings files are merged, no longer requiring the closest settings file to fully define list values.
- Made the number of new lines after the imports block configurable.
- Improved the behaviour of the 'order_by_type' setting.
- Improved sorting of imports based on type of data.
- Support has been added for ordering by the type of data being imported, in addition to basic alphabetical sorting.
- Added support for atomic operation, only applying changes if no syntax errors are introduced.
- Fixed one case where an import was incorrectly skipped over.
- Fixed a potential syntax error with relative imports
- Added support for skipping entire directories
- Added support for setup.cfg based configuration
- Added support for running recursive
- Added dynamic settings lookup, enabling kate-plugin to correctly determine settings when sorting - independent of where it's started.
- Added support for Windows
- Fixed a crash when parsing from a path with unicode characters in Python2
- Fixed placement of additional imports, when no imports existed previously within the file.
- Added support for intelligently balanced multi-line wrapping.
- Fixed an issue that caused section comments to show up more then once.
- Adds support for editorconfig (http://editorconfig.org/)
- Adds support for consistent syntax when adding or removing imports
- Improves handling of files that a user doesn't have permission to read
- Adds the ability to separate import sections with custom comments
- Fixes extra spaces before certain multi-line import statements
- Improves configuration mechanism for setting custom indent modes, fixing bug with quotes ending up in output.
- Fixes an issue sorting imports from standard input
- Adds full documentation to pypi page
- Adds support for forcing all imports to be on their own line
- Added support for changing which section imports default to when it cannot be auto determined.
- Added ability to generate a diff of changes by append "--diff" to the isort command.
- The handling of settings files has been improved.
- Improves intelligent ignoring of imports within comments
- Added support for custom import sub-sections.
- Now intelligently skips import lines that are contained within a comment or string
- Fixed a bug in sort verification when new lines where present in the import line.
- Now returns the error status code from the command line if any of the files being checked in verify mode don't match the desired format.
- Updated known_standard_library list.
- Keeps current selection after sorting, adding, or removing imports.
- Puts explicitly local (aka . imports) in their own separate section.
- Adds support for skipping an entire file by adding isort:skip_file to the modules docstring.
- Adds support for project level configuration.
- Adds initial support for using isort to verify files instead of change them.
- Improved module grouping detection method.
- Added two additional multi-line output modes (Vertical Grid & Vertical Grid Grouped).
- Forces there to be exactly one new line at the end of all sorted files.
- Keeps cursor position on when adding and removing imports.
- Adds support for writing to stdout by appending -d argument
- Now keeps current cursor position after sorting imports.
- Quickly add an import from any location simply by typing ctrl+] then the Python import statement.
- Quickly remove an import from any location simply by typing shift+ctrl+] then the name of the import.
- Fixed a bug that caused an extra new line at the end of files when parsed using stdin
- Improved module placement detection
- Added support for parsing files with unicode characters
- Fallback to distutils when setuptools is not present
- Correctly handle imports at the end of a file
- Correctly identify modules from . as from within the local project
- Fixed a bug where code in the middle of imports was sometimes removed
- Enable isort to be used without configparser
- Switched to use setuptools
- Fixed bug that caused 'skip' files not to be skipped.