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

set -e

echo "Running pre-push checks..."

echo "Checking lockfile is in sync..."
uv lock --check

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

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

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

echo "All checks passed."
