Black
6.6#3 in code formattersFree planFree planLinuxmacOSSelf-hostedWindows
Visit| Fact | Black | clang-format |
|---|---|---|
| Editor integrations | The documentation describes integrations for editors including PyCharm, Vim, Neovim, Visual Studio Code, and Sublime Text. | The documentation describes integrations for Vim, Emacs, BBEdit, CLion, Visual Studio, and Visual Studio Code. |
| License | Black is licensed under the MIT license. | LLVM releases are distributed under the Apache-2.0 license with LLVM exceptions, which the download page describes as OSI-approved. |
| Purpose | Black is an opinionated formatter for Python code that follows PEP 8. | ClangFormat is a set of tools built on LibFormat for formatting source code, available as a standalone tool and through editor integrations. |
No prices published.
Black suits Python developers who want consistent formatting with few style decisions. It can also suit teams using documented editor integrations or GitHub Actions.
It suits developers who want consistent source formatting from a standalone tool or editor integration. Its style presets and project-level configuration support teams with established formatting rules.