#!/usr/bin/env sh
# pfetl-analytics-studio - Pre-Push Quality Gate (Full Tier)
# Managed by Project Forge (pforge)
echo "[Quality Gate] Running Pre-Push Full Verification Suite..."

uv run pforge quality
EXIT_CODE=$?

if [ $EXIT_CODE -ne 0 ]; then
    echo ""
    echo "[Quality Gate] [FAIL] Pre-push verification failed."
    echo "[Quality Gate] Push aborted. Ensure all quality checks pass before pushing."
    exit $EXIT_CODE
fi

echo "[Quality Gate] [PASS] Full verification suite passed cleanly. Proceeding with push."
exit 0
