export VIRTUAL_ENV := "" docker := if `test -w /var/run/docker.sock && echo ok || echo no` == "ok" { "docker" } else { "sudo docker" } default: check install-dev: uv sync check: format-check lint typecheck check-strict: check uv run --inexact ruff check --select F401,F841,ARG,PLR0913,C901,RUF src/ test/ fix: uv run --inexact ruff format src/ test/ uv run --inexact ruff check --fix src/ test/ format: uv run --inexact ruff format src/ test/ format-check: uv run --inexact ruff format --check src/ test/ lint: uv run --inexact ruff check src/ test/ typecheck: uv run --inexact mypy src/ test: uv run --inexact pytest test-docker: {{docker}} compose -f compose/scenarios/standalone.yml run --build --rm gemini-py test-docker-tools: {{docker}} compose -f compose/scenarios/standalone.yml run --build --rm gemini-py /app/scripts/tool_test.py build: uv build clean: rm -rf dist/ .mypy_cache/ .ruff_cache/ find . -type d -name __pycache__ -exec rm -rf {} +