-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 724 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (25 loc) · 724 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
.PHONY: setup demo test clean help
help:
@echo "Available commands:"
@echo " make setup - Install dependencies with uv"
@echo " make demo - Run demo inference"
@echo " make test - Run tests"
@echo " make clean - Clean cache and temporary files"
setup:
uv sync
demo:
@if [ -z "$(INPUT)" ]; then \
echo "⚠️ Please provide an input image:"; \
echo " make demo INPUT=path/to/your/diagram.png"; \
exit 1; \
fi
mkdir -p runs/demo
uv run archlens analyze "$(INPUT)" --output runs/demo
test:
uv run pytest -q
clean:
rm -rf .pytest_cache
rm -rf .mypy_cache
rm -rf **/__pycache__
find . -type d -name "__pycache__" -exec rm -r {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete