-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (33 loc) · 1.8 KB
/
Copy pathMakefile
File metadata and controls
37 lines (33 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Install dependencies using uv package manager
install:
@command -v uv >/dev/null 2>&1 || { echo "uv is not installed. Installing uv..."; curl -LsSf https://astral.sh/uv/0.6.12/install.sh | sh; source $HOME/.local/bin/env; }
uv sync --dev
# Launch local dev playground
playground:
@echo "==============================================================================="
@echo "| 🚀 Starting your agent playground... |"
@echo "| |"
@echo "| 💡 Try asking: What's the weather in San Francisco? |"
@echo "| |"
@echo "| 🔍 IMPORTANT: Select the 'app' folder to interact with your agent. |"
@echo "==============================================================================="
uv run adk web . --port 8501 --reload_agents
# Deploy the agent remotely
backend:
# Export dependencies to requirements file using uv export.
uv export --no-hashes --no-header --no-dev --no-emit-project --no-annotate > .requirements.txt 2>/dev/null || \
uv export --no-hashes --no-header --no-dev --no-emit-project > .requirements.txt && uv run app/agent_engine_app.py
# Set up development environment resources using Terraform
setup-dev-env:
PROJECT_ID=$$(gcloud config get-value project) && \
(cd deployment/terraform/dev && terraform init && terraform apply --var-file vars/env.tfvars --var dev_project_id=$$PROJECT_ID --auto-approve)
# Run unit and integration tests
test:
uv run pytest tests/unit && uv run pytest tests/integration
# Run code quality checks (codespell, ruff, mypy)
lint:
uv sync --dev --extra lint
uv run codespell
uv run ruff check . --diff
uv run ruff format . --check --diff
uv run mypy .