#!/bin/bash
set -e

# Navigate to project root (in case commit is from subdirectory)
cd "$(git rev-parse --show-toplevel)"

echo "🧹 Running ruff linter..."
if ! uvx ruff check; then
    echo "❌ Lint check failed"
    exit 1
fi

echo "✅ All checks passed!" 