ruff
Installation
SKILL.md
ruff - Python Linter & Formatter
Overview
Ruff is one binary that is two tools, and keeping them apart is the whole mental model:
| Command | Replaces | Config section | |
|---|---|---|---|
| Linter | ruff check |
Flake8 (+plugins), isort, pyupgrade, bandit, pydocstyle, parts of Pylint | [tool.ruff.lint] |
| Formatter | ruff format |
Black | [tool.ruff.format] |
They share config discovery, file discovery, line-length, indent-width, and target-version —
nothing else. ruff format does not sort imports (that's the linter's I rules); ruff check
does not reformat. Run them in that order: ruff check --fix && ruff format.