#!/usr/bin/env bash
# Pre-commit hook: runs lint and unit tests before every commit.
# Install: git config core.hooksPath .githooks

set -e

echo "→ format (ruff)..."
uv run ruff format --check .

echo "→ lint (ruff)..."
uv run ruff check .

echo "→ tests (pytest)..."
uv run pytest --tb=short -q

echo "✓ pre-commit checks passed"
