This repository was archived by the owner on Jun 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
79 lines (62 loc) · 2.14 KB
/
Makefile
File metadata and controls
79 lines (62 loc) · 2.14 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
.PHONY: test test-coverage clean lint format install setup-dev setup-venv test-unit test-integration uv-test uv-test-unit uv-test-integration uv-lint uv-format
# Environment setup targets
setup-venv:
@echo "Setting up virtual environment..."
uv venv
# setup-dev: setup-venv
# @echo "Setting up development environment..."
# @if command -v uv >/dev/null 2>&1; then \
# echo "Using UV for faster installation"; \
# . .venv/bin/activate && uv pip install -e ".[dev]"; \
# else \
# echo "Using pip for installation"; \
# . .venv/bin/activate && pip install -e ".[dev]"; \
# fi
# @echo "Installing pre-commit hooks..."
# . .venv/bin/activate && pre-commit install
# install:
# @if command -v uv >/dev/null 2>&1; then \
# echo "Using UV for faster installation"; \
# uv pip install -e .; \
# else \
# echo "Using pip for installation"; \
# pip install -e .; \
# fi
# Test targets
test:
@echo "Running all tests..."
uv run pytest
test-unit:
@echo "Running unit tests only..."
uv run pytest -m unit tests/
test-integration:
@echo "pytest -m integration tests/
test-e2e:
@echo "Running end-to-end tests..."
./scripts/run_e2e_tests.sh
test-coverage:
@echo "Running tests with coverage..."
uv run pytest tests/ --cov=code_agent --cov-config=pyproject.toml --cov-report=term --cov-report=html --cov-fail-under=80
test-report:
uv run pytest tests/ --cov=code_agent --cov-config=pyproject.toml --cov-report=term --cov-report=html --cov-fail-under=80
open htmlcov/index.html
sonar-report:
./scripts/run_coverage_pipeline.sh
# Linting and formatting
lint:
uv run ruff check .
uv run ruff format --check .
format:
uv run ruff check --fix .
uv run ruff format .
# Clean up
clean:
rm -rf .coverage htmlcov/ .pytest_cache/ *.egg-info/ dist/ build/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type d -name .ruff_cache -exec rm -rf {} +
swe-run-chat:
uvx --from git+https://github.com/google/adk-python.git@main adk run code_agent/agent/software_engineer/software_engineer
swe-web-chat:
uvx --from git+https://github.com/google/adk-python.git@main adk web code_agent/agent/software_engineer
code-agent-chat:
uv run code-agent chat