# onetool-pack development tasks

default:
    @just --list --unsorted

# Run all checks (lint + typecheck + test + boundary)
check: lint typecheck test check-boundary

# Check otpack import boundary (no ot.* outside config.py/logging.py)
check-boundary:
    uv run python scripts/check_otpack_boundary.py

# Run tests
test *args:
    uv run pytest -m "not integration" {{ args }}

# Lint code
lint:
    uv run ruff check src/

# Lint and auto-fix
lint-fix:
    uv run ruff check --fix src/

# Format code
fmt:
    uv run ruff format src/

# Type check
typecheck:
    uv run mypy

# Build distributable wheel
build-pack:
    rm -rf dist/
    uv build --wheel
