-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 932 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 932 Bytes
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
.PHONY: setup lint test fmt example clean
setup:
uv sync --all-packages
uv run pre-commit install --install-hooks --hook-type pre-commit --hook-type commit-msg
lint:
uv run ruff check .
uv run ruff format --check .
uv run python scripts/linting/run_mypy.py
test:
uv run pytest
fmt:
uv run ruff format .
uv run ruff check --fix .
# Preferred flow: cd examples/01-orchestrator-pipeline && docker compose up --build
# Shortcut usage: make example EX=01-orchestrator-pipeline
example:
docker compose -f examples/$(EX)/docker-compose.yml up --build
example-down:
docker compose -f examples/$(EX)/docker-compose.yml down -v
clean:
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type d -name .pytest_cache -exec rm -rf {} + 2>/dev/null || true
find . -type d -name .mypy_cache -exec rm -rf {} + 2>/dev/null || true
find . -type d -name .ruff_cache -exec rm -rf {} + 2>/dev/null || true