set dotenv-load
set positional-arguments

build *args:
    uv run deped-geos build {{ args }}

profile-stats *args:
    uv run python -m deped_geos.producer.profile_area_stats {{ args }}

check:
    uv run pytest

check-base:
    uv run --no-default-groups python -c "import deped_geos.producer, deped_geos.products.boundaries.writer, deped_geos.products.stats.builder, deped_geos.products.labels"
    uv run --no-default-groups deped-geos build --output-dir /tmp/deped-geos-base
    uv run --no-default-groups deped-geos status --output-dir /tmp/deped-geos-base

check-notebooks:
    uv run --group workbench marimo check notebooks/*.py

check-full: check check-base check-notebooks

notebooks:
    uv run --group workbench marimo edit notebooks/10_boundary_explorer.py

docs:
    uv run zensical serve --dev-addr localhost:8003

# upload to pypi
publish:
    uv build && \
    UV_PUBLISH_TOKEN=$PYPI_TOKEN uv publish
