红联Linux门户
Linux帮助

isort 4.2.0发布,Python的import排序

发布时间:2015-09-20 09:12:50来源:红联作者:empast
isort 4.2.0 发布,此版本更新内容如下:

Added option "NOQA" Do not wrap lines, but add a noqa statement at the end

Added support for runnning isort recursively, simply with a standalone isort command

Added support to run isort library as a module

Added compatibility for Python 3.5

Fixed performance issue (#338) when running on project with lots of skipped directories

Fixed issue #328: extra new can occasionally occur when using alphabetical-only sort

Fixed custom sections parsing from config file (unicode string -> list)

Updated pylama extension to the correct entry point

Skip files even when file_contents is provided if they are explicitly in skip list

Removed always showing isort banner, keeping it for when the version is requested, verbose is used, or show_logo setting is set.

下载:https://github.com/timothycrosley/isort/archive/4.2.0.zip

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

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

共有 1 条评论

  1. qq179215081 于 2015-09-22 01:29:30发表:

    不错