set dotenv-load

default:
    @just --list

fmt:
    cargo fmt

fmt-check:
    cargo fmt --check

test:
    cargo test

clippy:
    cargo clippy

check: fmt-check test clippy

dist:
    uv build

dist-linux-x86_64-musl:
    MATURIN_PEP517_ARGS="--target x86_64-unknown-linux-musl --compatibility musllinux_1_2" uv build --wheel

smoke:
    wheel=$(ls -t dist/*.whl | head -n 1); uv run --isolated --with "$wheel" py-spy-tui --version

build-all: check dist smoke
