fleetlint Policy for a fleet of repositories
v0.6
Getting started

format/configured/python

A formatter is configured

Implements format/configured for python.

Severitywarning
Tiers1, 2
Stackspython
Scopeeach
Kindoutcome
Sourcelibrary v0.3.1
Selected byfleetlint-recommended@v0.3.1

Requirement

ruff format or black runs in a hook, the task runner or CI, or is configured ([tool.ruff.format] or [tool.black] in pyproject.toml). Another formatter is added with accept:.

Why

Without one formatter every editor reformats differently and diffs fill with whitespace churn that hides the real change.

Fix

Add ruff format to the fmt target and a ruff-format hook.

Agent instruction: Add uv run ruff format to the fmt target and the ruff-format pre-commit hook; reformat the code base in a separate commit.

See: https://fleetlint.org/baseline/#static-analysis, https://fleetlint.org/stacks/#python


Generated by fleetlint docs from catalog v0.3.1.