#!/bin/bash
set -e

echo "Running pre-commit hooks..."

# Check type stubs are up-to-date
./scripts/check-stubs.sh

# Run ruff check
echo "Running ruff check..."
uv run ruff check src/

# Run mypy
echo "Running mypy..."
uv run mypy src/

# Run tests
echo "Running tests..."
uv run pytest

echo "Pre-commit hooks passed!"
