default:
    @just --list

# Format sources
fmt:
    uv run ruff format src tests

# Check formatting without modifying
fmt-check:
    uv run ruff format --check src tests

# Run linter
lint:
    uv run ruff check --fix src tests

# Run linter with auto-fix
lint-fix:
    uv run ruff check --fix src tests

# Run tests
test *args:
    uv run pytest {{ args }}

# Run tests with verbose output
test-v *args:
    uv run pytest -v {{ args }}

# Show certificate in human-readable format
show-cert file:
    nebula-cert print -path {{ file }}

# Format, lint, and test
check: fmt lint test

shell:
    uv venv --allow-existing 2>&1 | tail -n 1 | sed "s/Activate with: //"

bump-dev:
    uv version --bump dev

build:
    uv build
