#!/bin/bash
set -e

# Shared checks used by both pre-commit and CI.
# Usage: scripts/check

echo "📝 Checking formatting..."
cargo fmt --all -- --check

echo "📎 Running clippy..."
cargo clippy --all-targets -- -D warnings

echo "🧪 Running tests..."
cargo test --all

echo "✅ All checks passed!"
