#!/bin/sh
# Pre-commit hook: format + lint gate
# Install: git config core.hooksPath .githooks

set -e

echo "[pre-commit] Running format check..."
cargo fmt --all --check

echo "[pre-commit] Running clippy..."
cargo clippy --all-targets --all-features -- -D warnings

echo "[pre-commit] All checks passed."
