#!/usr/bin/env bash
# Mirrors CI: format check, lint, type check, test, docs.
# Run before committing.
set -euo pipefail

echo "==> ruff format --check"
ruff format --check src tests examples

echo "==> ruff check"
ruff check src tests examples

echo "==> interrogate"
interrogate src/plushie/

echo "==> pyright"
pyright src tests examples

echo "==> pytest"
pytest

echo "==> verify doc tests"
python scripts/verify_doc_tests.py

echo "==> mkdocs build --strict"
mkdocs build --strict --quiet

echo ""
echo "All checks passed."
echo ""
echo "Optional: run 'pytest --cov' for coverage report."
