# suredata-client — common dev tasks (uv, ruff, ty, pytest)

set shell := ["bash", "-uc"]

# Show available recipes.
default:
    @just --list

# Install/sync runtime and dev dependencies.
sync:
    uv sync --all-extras

# Format Python sources in place.
format:
    uv run ruff format .

# Check formatting without writing changes.
format-check:
    uv run ruff format --check .

# Run Ruff lint checks.
lint:
    uv run ruff check .

# Run static type checks (ty).
typecheck:
    uvx ty check

# Run the test suite. Pass extra pytest args, e.g. `just test -k auth`.
test *args:
    uv run pytest {{args}}

# Run format-check, lint, typecheck, and tests (CI-style).
check: format-check lint typecheck test

# Bump the project version in pyproject.toml (default: patch).
version-bump bump="patch":
    uv version --bump {{bump}}

# List CLI resources (no API key required).
cli-resources:
    uv run suredata-client resources
