手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

isort 4.2.0 发布下载,Python 的 import 排序

[日期:2015-09-20] 来源:oschina.net  作者:Linux [字体: ]

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

linux
相关资讯       isort 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款