-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
67 lines (52 loc) · 2.24 KB
/
Makefile
File metadata and controls
67 lines (52 loc) · 2.24 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
.PHONY: help install run-api test test-cov test-unit test-integration test-e2e lint format type-check check pre-commit sync-skills validate-skills clean
help:
@echo "Available commands:"
@echo " make install - Install dependencies with Poetry"
@echo " make run-api - Run HTTP API server (FastAPI + Uvicorn)"
@echo " make test - Run all tests"
@echo " make test-cov - Run tests with coverage report"
@echo " make test-unit - Run only unit tests"
@echo " make test-integration - Run only integration tests"
@echo " make test-e2e - Run only e2e tests"
@echo " make lint - Check code with ruff"
@echo " make format - Format code with ruff"
@echo " make type-check - Run mypy type checking"
@echo " make check - Run lint + type-check"
@echo " make pre-commit - Run pre-commit hooks on all files"
@echo " make sync-skills - Sync canonical Agent Skills into Codex skills"
@echo " make validate-skills - Validate skills structure, sync, and smoke contracts"
@echo " make clean - Remove cache and build files"
install:
poetry install
run-api:
poetry run api-bootstrapper-api
test:
poetry run pytest -n auto --cov=src/api_bootstrapper_cli --cov-report=term-missing --cov-report=html
test-unit:
poetry run pytest -n auto tests/unit
test-integration:
poetry run pytest -n auto tests/integration
test-e2e:
poetry run pytest -n auto tests/e2e
lint:
poetry run ruff check src tests
format:
poetry run ruff format src tests
poetry run ruff check --fix src tests
poetry run mypy src tests
type-check:
poetry run mypy src tests
check: lint type-check
pre-commit:
pre-commit run --all-files
sync-skills:
poetry run python scripts/sync_skills_to_codex.py
validate-skills:
poetry run python scripts/validate_skills.py
clean:
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name "*.egg-info" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name ".pytest_cache" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name ".ruff_cache" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name ".mypy_cache" -exec rm -rf {} + 2>/dev/null || true
rm -rf htmlcov .coverage coverage.xml