-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (43 loc) · 1.86 KB
/
Makefile
File metadata and controls
62 lines (43 loc) · 1.86 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
.PHONY: help install dev test lint coverage run-api run-bot docker clean
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'
install: ## Install production dependencies
pip install -r requirements.txt
dev: ## Install dev + production dependencies
pip install -r requirements.txt
pip install pytest pytest-asyncio pytest-cov httpx ruff aiosqlite
test: ## Run all tests
python -m pytest tests/ -v --tb=short
test-quick: ## Run tests (quiet, fast)
python -m pytest tests/ -q --tb=line
lint: ## Run ruff linter
ruff check .
lint-fix: ## Auto-fix lint issues
ruff check . --fix
coverage: ## Run tests with coverage report
python -m pytest tests/ --cov=. --cov-report=term-missing --cov-report=html
run-api: ## Start the API server
python -m api.main
run-bot: ## Start the Telegram bot
python -m bot.main
docker: ## Build and run with Docker Compose
docker compose up --build -d
docker-dev: ## Run with hot-reload (development mode)
docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build
docker-down: ## Stop Docker Compose
docker compose down
test-all: ## Run Python + TypeScript SDK tests
python -m pytest tests/ -v --tb=short
cd sdk/ts && npx vitest run
sdk-build: ## Build Python SDK
cd sdk/agentpay && python -m build
sdk-publish: ## Publish Python SDK to PyPI (needs TWINE_USERNAME/TWINE_PASSWORD)
cd sdk/agentpay && python -m build && twine upload dist/*
ts-build: ## Build TypeScript SDK
cd sdk/ts && npm install && npx tsup
ts-test: ## Run TypeScript SDK tests
cd sdk/ts && npx vitest run
clean: ## Remove build artifacts
rm -rf __pycache__ .pytest_cache htmlcov .coverage coverage.xml
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete 2>/dev/null || true