format/configured/python
A formatter is configured
Implements format/configured for python.
| Severity | warning |
| Tiers | 1, 2 |
| Stacks | python |
| Scope | each |
| Kind | outcome |
| Source | library v0.2.0 |
| Selected by | fleetlint-recommended@v0.2.0 |
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.2.0.