#!/usr/bin/env bash
set -euo pipefail

script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
project_root="$(cd "${script_dir}/.." && pwd)"
export UV_CACHE_DIR="${project_root}/.uv-cache"

cd "${project_root}"
uv sync --extra test --frozen
uv run ruff check src tests_py
uv run pytest
uv run scopewrit benchmark --output evidence/local/isolated
uv build
