isort 3.9.6 发布,在 isort 3.9.5 发布没几个小时就又发布了 isort 3.9.6,现已提供下载(ZIP)。
isort 3.9.6 改进内容如下:
Fixed inconsistent ordering of imports when sorting from imports case-insensitively
Fixed comments not being placed correctly, when more then one exists above an import
isort 3.9.5 改进内容如下:
Fixed a problem that caused the comments at the top of a file to sometimes get mangled or removed.
Fixed a problem that occurred when imports had the word "from" or "import" in them.
Improved how import sections are determined when running isort within a virtualenv.
Added support for displaying from imports before normal ones using 'from_first' setting.
Added support for separately specifying wrap_length from line length limit.
Added support for adding trailing commas automatically.
isort 可自动对 Python 的 import 语句进行排序和分段。可将大量的 import 结构转成非常适合阅读的排版。提供一个命令行工具、Python 库和 Kate 插件。
下载地址:https://github.com/timothycrosley/isort/archive/3.9.6.zip
来自:开源中国社区

