#!/usr/bin/env bash
# Pre-push hook: replicates the CI "check" job (lint → typecheck → test).
# Runs against the committed state (not the working tree).
set -euo pipefail

echo ">>> pre-push: lint (ruff check)"
uv run ruff check src tests

echo ">>> pre-push: typecheck (mypy)"
uv run mypy

echo ">>> pre-push: test (pytest)"
uv run pytest

echo ">>> pre-push: all checks passed"
