Black

不折不扣的 Python 代码格式化器。「The uncompromising Python code formatter」

Github星跟踪图

Black Logo

“Any color you like.”

Black is the uncompromising Python code formatter. By using it, you agree to cede
control over minutiae of hand-formatting. In return, Black gives you speed,
determinism, and freedom from pycodestyle nagging about formatting. You will save time
and mental energy for more important matters.

Blackened code looks the same regardless of the project you're reading. Formatting
becomes transparent after a while and you can focus on the content instead.

Black makes code review faster by producing the smallest diffs possible.

Try it out now using the Black Playground. Watch the
PyCon 2019 talk to learn more.


Contents: Installation and usage

主要指标

概览
名称与所有者psf/black
主编程语言Python
编程语言Python (语言数: 4)
平台Linux, Mac, Windows
许可证MIT License
所有者活动
创建于2018-03-14 19:54:45
推送于2025-04-28 06:39:30
最后一次提交
发布数64
最新版本名称25.1.0 (发布于 )
第一版名称18.3a0 (发布于 )
用户参与
星数40.2k
关注者数232
派生数2.6k
提交数2k
已启用问题?
问题数2699
打开的问题数335
拉请求数1553
打开的拉请求数34
关闭的拉请求数319
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?