#!/usr/bin/env bash
# Pre-commit hook: lint and run unit tests before committing.
set -euo pipefail

echo "==> Running ruff check..."
uv run ruff check src/ tests/

echo "==> Running unit tests..."
uv run pytest tests/unit -q --tb=short

echo "==> Pre-commit checks passed."
