# List commands
default:
    @just --list

# Install the uv environment.
install:
    @echo "🚀 Creating virtual environment using uv"
    uv sync

# Run code quality tools.
check:
    @echo "🚀 Linting code: Running pre-commit"
    uv run pre-commit run -a
    @echo "🚀 Checking for dependency issues: Running deptry"
    uv run deptry src

# Run unit tests.
test:
    @echo "🚀 Running unit tests"
    @uv run python -m pytest --cov --cov-config=pyproject.toml --cov-report=xml tests

# Test if documentation can be built without warnings or errors.
docs-test:
    uv run zensical build --clean

# Build and serve the documentation.
docs:
    uv run zensical serve
