#!/usr/bin/env bash
# Pre-commit hook: runs ruff check, ruff format, and ty type checking.
# Install with: uv run python scripts/install-hooks.py

set -e

echo "ruff check..."
uv run ruff check .
echo "ruff format --check..."
uv run ruff format --check .
echo "ty check..."
uv run ty check --error-on-warning src/ tests/
echo "All pre-commit checks passed."
