Add it in Tori
- Open Settings with the gear in the title bar.
- Go to Formatters.
- Ruff 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 ruff.toml
~/.config/tori/packs/formatters/
The file
ruff.tomlRead only
1# Ruff's formatter, from the project's own virtualenv or the login PATH. See2# FORMATTERS.md.34schema_version = 15id = "ruff"6label = "Ruff"7description = "Format Python with Ruff"8license = "Apache-2.0"9contributor = { name = "Tori", github = "gettori" }10extensions = ["py", "pyi"]1112verified_against = "ruff 0.16.8"13verified_on = "2026-09-21"1415[markers]16files = ["ruff.toml", ".ruff.toml"]17keys = [{ file = "pyproject.toml", key = "tool.ruff" }]1819[launch]20kind = "project_bin"21program = "ruff"22# `--stdin-filename` is what finds the config and the per-file settings.23args = ["format", "--stdin-filename", "{file}", "-"]