prek
Installation
SKILL.md
Prek — Pre-commit Formatter Setup
prek is a fast, Rust-native drop-in alternative to
pre-commit. It reads prek.toml and runs formatters automatically on staged
files at commit time.
Formatters — all use 4 spaces, no tabs, line-length 120:
- Python: ruff-check --fix + ruff-format (via astral-sh/ruff-pre-commit)
- SQL:
uv run sqlfmt(local hook) - TypeScript/JS:
bunx --bun prettier --write(local hook) - YAML: builtin check-yaml (if .yaml/.yml files present)
Step 0: Ensure prek is installed
prek --version