# justfile
# USe `winget install --id Casey.Just --exact`
# [Just Git repo](https://github.com/casey/just)

# Install dependencies and the package in editable mode
install:
    uv pip install -e .[dev]

# Run tests
test:
    uv run pytest

# Run fast linting and formatting checks
lint:
    uv run ruff check .
    uv run ruff format --check .

# Fix linting and formatting issues automatically
fix:
    uv run ruff check --fix .
    uv run ruff format .

# Run static type checking
types:
    uv run mypy src

# Run all checks (great for CI or before pushing)
check: lint types test

# Build documentation (assuming mkdocs)
docs:
    uv run mkdocs serve

# Clean up build artifacts
clean:
    rm -rf dist
    rm -rf build
    rm -rf .pytest_cache
    rm -rf src/*.egg-info
    find . -type d -name "__pycache__" -exec rm -rf {} +