Black

Formatterby Tori @gettoriApache-2.0Bundled
Verified against
black 26.5.1Measured Sep 22, 2026
Platforms
macOS, Linux, Windows
Install
Uses your project's copy
Needs Tori
26.1009.0 or newer
Schema
Version 1
Id
black
Source file
formatters/black.toml ↗gettori/packs on GitHub

Add it in Tori

  1. Open Settings with the gear in the title bar.
  2. Go to Formatters.
  3. Black is already there: it ships inside Tori. When the catalog has a newer version, Add a formatter lists it with Update.

Adding writes one file and runs nothing. Tori runs the copy your project already installs.

Use it without the catalog

Download the file and drop it in the folder below. Tori loads it the next time it starts.

Download file black.toml
~/.config/tori/packs/formatters/

The file

black.tomlRead only
1# Black, from the project's own virtualenv or the login PATH. See FORMATTERS.md.23schema_version = 14id = "black"5label = "Black"6description = "Format Python with Black"7license = "Apache-2.0"8contributor = { name = "Tori", github = "gettori" }9extensions = ["py", "pyi"]1011# Above Ruff: a pyproject.toml that configures both usually lints with Ruff and12# formats with Black.13priority = 101415verified_against = "black 26.5.1"16verified_on = "2026-09-22"1718# Black reads its project config from pyproject.toml only.19[markers]20keys = [{ file = "pyproject.toml", key = "tool.black" }]2122[launch]23kind = "project_bin"24program = "black"25# `--stdin-filename` is what finds the config, and picks stub style for a `.pyi`.26args = ["--quiet", "--stdin-filename", "{file}", "-"]