isort 可自动对 Python 的 import 语句进行排序和分段。可将大量的 import 结构转成非常适合阅读的排版。提供一个命令行工具、Python 库和 Kate 插件。
isort 2.1.0 改进记录:
- Forces exactly one new line at the end of all parsed files.
- The Kate plugin now keeps cursor position even when imports are added or removed.
- Works correctly with the "import as" statement.
- Hooks have been added to the SortImports class to allow plugins to to know how many lines have been added, in order to support retaining cursor position
暂无更多评论