ruff
Installation
SKILL.md
ruff — Policy
Precedence: this policy (below) > astral:ruff (if installed) / live docs.astral.sh for command
syntax and general usage (not duplicated here).
Policy
- Never pass
--ignoretoruff checkto make CI pass, and never suppressBLE001,D103, orTRY300by any mechanism — not even the config exclusions below. A# noqarequires explicit user approval first. Other codes may use per-file config exclusions inpyproject.toml, limited to a genuine rule conflict, code that tests the rules themselves, a purposefully bad/negative example or fixture, externally-managed vendored code we don't modify, a runtime with a real lower syntax/typing ceiling (an older pinned CPython or a variant like MicroPython/CircuitPython), or a case where the fix would cost more upkeep than compliance is worth — each needs the specific reason, not just the category name. --unsafe-fixesis permitted only with--diffreviewed before applying.- Format every Python file you touch in full — do not adopt Astral's default advice to skip unformatted files; a project gating on
ruff format --check --all-fileswill fail the build otherwise. - Invoke as
uv run ruff, never barerufforuvx ruff— those may resolve a different version than the one your lockfile pins.