#!/usr/bin/env bash
# Auto-format and lint before every commit.
# Install once: git config core.hooksPath .githooks

set -e

echo "► ruff format..."
uv run ruff format .

echo "► ruff check --fix..."
uv run ruff check --fix .

# Re-stage any files that ruff modified
git add -u
