Black

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

Github stars Tracking Chart

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

Main metrics

Overview
Name With Ownerpsf/black
Primary LanguagePython
Program languagePython (Language Count: 4)
PlatformLinux, Mac, Windows
License:MIT License
所有者活动
Created At2018-03-14 19:54:45
Pushed At2025-04-28 06:39:30
Last Commit At
Release Count64
Last Release Name25.1.0 (Posted on )
First Release Name18.3a0 (Posted on )
用户参与
Stargazers Count40.2k
Watchers Count232
Fork Count2.6k
Commits Count2k
Has Issues Enabled
Issues Count2699
Issue Open Count335
Pull Requests Count1553
Pull Requests Open Count34
Pull Requests Close Count319
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private