# Mirrors CI (.github/workflows/ci.yml) so `just check` == what CI runs.

install:
    uv sync --extra station
    git config core.hooksPath .githooks   # arms both .githooks/pre-commit and pre-push

format:
    uv run ruff format .

lint:
    uv run ruff check .

test:
    uv run pytest -q

# what CI gates on
check: lint
    uv run ruff format --check .
    uv run pytest -q
    rm -rf dist
    uv build
    uv run --with twine twine check dist/*

release-check version:
    scripts/check-release.sh {{version}}

release version:
    scripts/release.sh {{version}}

# fast commit gate — also run by .githooks/pre-commit
ready: lint
    uv run ruff format --check .
