红联Linux门户
Linux帮助

isort 2.1.0发布,Python的import排序

发布时间:2013-10-18 07:31:58来源:红联作者:empast
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

官方首页:https://github.com/timothycrosley/isort

来自:开源中国社区
文章评论

共有 0 条评论