-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (37 loc) · 1.4 KB
/
Makefile
File metadata and controls
46 lines (37 loc) · 1.4 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
38
39
40
41
42
43
44
45
46
.PHONY: setup run run-agent run-web export-reqs test lint typecheck format check
setup:
@echo "Setting up project environments using uv..."
uv sync
uv pip install pre-commit
uv run pre-commit install
@echo "Setup complete. Please ensure you have copied .env.example to .env and configured your variables."
export-reqs:
@echo "Exporting pyproject.toml to requirements.txt..."
chmod +x scripts/export_requirements.sh
./scripts/export_requirements.sh
run-agent:
@if [ -z "$(AGENT)" ]; then \
echo "Usage: make run-agent AGENT=<agent_folder_name>"; \
echo "Example: make run-agent AGENT=bq_adk_tools_agent"; \
exit 1; \
fi
@echo "Running $(AGENT) in terminal mode..."
GRPC_VERBOSITY=ERROR GRPC_ENABLE_FORK_SUPPORT=False GLOG_minloglevel=2 uv run adk run agents/$(AGENT)
run:
@echo "Running the default agent in terminal mode..."
GRPC_VERBOSITY=ERROR GRPC_ENABLE_FORK_SUPPORT=False GLOG_minloglevel=2 uv run adk run agents/workflow_agents
run-web:
@echo "Running agents in web UI mode..."
GRPC_VERBOSITY=ERROR GRPC_ENABLE_FORK_SUPPORT=False GLOG_minloglevel=2 uv run adk web
lint:
@echo "Running linter..."
uv run pre-commit run ruff --all-files
typecheck:
@echo "Running type checker..."
uv run pre-commit run mypy --all-files
format:
@echo "Running formatter..."
uv run pre-commit run ruff-format --all-files
check: lint typecheck format
@echo "Checking codebase..."
uv run pre-commit run --all-files