import? 'justfile.local'

_default:
    @just --list

# set up the dev environment: Python, dependencies and commit hooks
setup:
    uv sync --active
    prek install

# run the MCP server (configured with VALOHAI_* environment variables)
serve:
    uv run --active valohai-mcp

# run the OAuth dev client against a running server; scope is token:read or token
dev-client scope="token:read":
    uv run --active dev/oauth_client.py {{scope}}

# run the tests
test *args:
    uv run --active pytest {{args}}

# run the tests on each supported Python version
test-all *args:
    uv run --isolated --python 3.14 pytest {{args}}
    uv run --isolated --python 3.15 pytest {{args}}

# run the linters and formatters
lint:
    prek run --all-files
