set dotenv-load
set positional-arguments

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

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

check:
    uv run pytest

check-geo:
    uv run --group geo pytest

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

check-full: check check-geo check-notebooks

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

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

dumpenv:
    op inject -i env.example -o .env

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