仅对git未分页/未跟踪的文件运行black(python代码格式化程序)
kuro的Python项目详细描述
库罗
仅对git未分页/未跟踪的文件运行Black(python代码格式化程序)
要求
用法
Usage: kuro [OPTIONS]
Options:
--diff Create a diff of the changes, in a 'kuro.diff' file. If
you approve the changes, run kuro with --apply_diff.
--apply_diff Consume (and delete) an existing 'kuro.diff' file.
--project_options Setup options for Kuro/Black on a directory level.
--help Show this message and exit.
如果您愿意,可以通过导出名为KURO_BLACK_OPTIONS
的环境变量,在全局级别上设置不同的kuro/black配置。
Kuro将优先使用项目选项,而不是使用全局选项。
如果没有设置全局或本地选项,kuro将正常运行黑色。
待办事项列表
- 验证保存在
.kuro_config
文件中的黑色设置 - 修复应用修补程序文件(目前略有损坏)