V2EX  ›  英汉词典
Enqueued related words: Pre-commit

Isort

释义 Definition

isort:一个用于 自动整理(排序、分组)Python import 语句 的代码格式化工具,可按风格规则将导入按字母顺序排列、区分标准库/第三方库/本地模块,并与项目的格式化配置配合使用。(也常写作 iSort;此外它也可泛指“我排序/排序工具”的字面含义,但最常见用法是指该工具。)

发音 Pronunciation (IPA)

/ˈaɪsɔːrt/

例句 Examples

I run isort before committing my code.
我会在提交代码前运行 isort。

To keep the codebase consistent, the team configured isort to group standard-library, third-party, and local imports automatically.
为了保持代码库一致,团队配置了 isort,让它自动把标准库、第三方库和本地模块的导入分组整理。

词源 Etymology

名称通常被理解为 “I + sort(我来排序/用于排序)” 的组合:用简短直观的方式表达“把 import 排序整理”的核心功能;在开发者语境中它逐渐固化为该 Python 工具的专名。

相关词 Related Words

文学/著作 Literary Works

  • isort 官方文档(isort Documentation
  • pre-commit 官方文档(常在示例配置中与 isort 一起出现)
  • Real Python 等技术文章与教程(讨论 Python 代码风格与工具链时常提及 isort)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   974 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 18ms · UTC 17:08 · PVG 01:08 · LAX 09:08 · JFK 12:08
♥ Do have faith in what you're doing.