#!/bin/sh
# Pre-push hook - runs the same checks as CI to catch issues early

set -e

echo "Running pre-push checks..."

echo "Checking ruff lint..."
uv run ruff check src/

echo "Checking code formatting..."
uv run ruff format --check src/

echo "Running tests..."
uv run pytest tests/ -x -q

echo "All checks passed."
