set -e
echo "🔍 Running pre-push checks (Comprehensive)..."
echo " ↳ Checking code formatting..."
cargo fmt -- --check
echo " ↳ Running Clippy (All features & targets)..."
cargo clippy --all-targets --all-features -- -D warnings
echo " ↳ Running project tests..."
cargo test --all-features
echo " ↳ Running self-analysis smoke test..."
cargo run -- . --quiet
echo "✅ Quality checks passed."