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 插件。
使用方法:
from isort import SortImports
SortImports("pythonfile.py")
isort 的详细介绍:请点这里
isort 的下载地址:请点这里
本文永久更新链接地址:http://www.linuxidc.com/Linux/2015-09/123310.htm