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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?