红联Linux门户
Linux帮助

isort 4.2.4发布,Python的import排序

发布时间:2016-03-30 09:31:07来源:红联作者:baihuo
isort 4.2.4 发布了。

改进日志:

Fixed an issue that caused module that contained functions before doc strings, to incorrectly place imports

Fixed regression in how force_alphabetical_sort was being interpretted (issue #409)

Fixed stray print statement printing skipped files (issue #411)

Added option for forcing imports into a single bucket: no_sections

Added option for new lines between import types (from, straight): lines_between_sections

isort 可自动对 Python 的 import 语句进行排序和分段。可将大量的 import 结构转成非常适合阅读的排版。提供一个命令行工具、Python 库和 Kate 插件。本次更新主要修复了大量bug。

下载地址:https://github.com/timothycrosley/isort/archive/4.2.4.tar.gz

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

共有 0 条评论