Black
Last updated
The uncompromising Python code formatter
Install with winget
$ winget install --id psf.black --exact --version 26.5.1Run in Command Prompt, PowerShell, or Windows Terminal. Prompts for any agreements.
For Intune admins
Stop chasing app updates. Pckgr patches them for you.
Automated application patching for Microsoft Intune. Pckgr keeps a curated library of 1,000+ apps continuously up-to-date in your tenant via Microsoft Graph - no manual repackaging, no chasing vendor sites.
Start free 30-day trialNo credit card required.
About
Black is the uncompromising Python code formatter. By using it, you agree to cede control over minutiae of hand-formatting.
Installers · v26.5.1
| Architecture | Type | Scope | Install | Download |
|---|---|---|---|---|
| x64 | Portable | - | Direct |
Copy a command tailored to that specific architecture, type, and scope - useful when winget would otherwise pick a different default.
Security
2 known CVEs via NVD
Black is the uncompromising Python code formatter. Prior to 26.3.1, Black writes a cache file, the name of which is computed from various formatting options. The value of the --python-cell-magics option was placed in the filename without sanitization, which allowed an attacker w...
Black is the uncompromising Python code formatter. Black provides a GitHub action for formatting code. This action supports an option, use_pyproject: true, for reading the version of Black to use from the repository pyproject.toml. A malicious pull request could edit pyproject.t...
See a CVE that affects your fleet? Push the patched version to Intune in one click with Pckgr.
Related apps
More from Python Software Foundation or browse autopep8, code, codeformatter.
Frequently asked questions
How do I install Black on Windows?
How do I install Black silently for unattended deployment?
How do I uninstall Black via winget?
Is Black free?
Does Black work on Windows 10?
How do I keep Black up to date?
Recent versions
- 26.5.1latest
- 25.1.0
- 24.10.0