-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (35 loc) · 1.32 KB
/
Copy pathMakefile
File metadata and controls
46 lines (35 loc) · 1.32 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
.PHONY: install install-dev test smoke lint format benchmark demo clean help
PYTHON ?= python3
PIP ?= pip
help:
@echo "Victor LLM – Makefile targets"
@echo ""
@echo " install Install runtime dependencies"
@echo " install-dev Install dev/test dependencies"
@echo " test Run all tests (smoke + toolkit)"
@echo " smoke Run only smoke tests (fast)"
@echo " lint Lint with ruff"
@echo " format Auto-format with ruff"
@echo " benchmark Run inference benchmark (5 prompts)"
@echo " demo Run the end-to-end demo"
@echo " clean Remove generated artifacts"
install:
$(PIP) install -r requirements.txt
install-dev: install
$(PIP) install pytest pytest-cov pytest-timeout ruff pyyaml
test: smoke
$(PYTHON) -m unittest test_godmode_toolkit -v 2>&1 | tail -5
smoke:
$(PYTHON) -m pytest tests/test_smoke.py -v --tb=short
lint:
$(PYTHON) -m ruff check victor_cli/ tests/ demos/ benchmarks/
format:
$(PYTHON) -m ruff check --fix victor_cli/ tests/ demos/ benchmarks/
benchmark:
$(PYTHON) benchmarks/harness.py --prompts 5 --max-tokens 16
demo:
$(PYTHON) demos/demo_e2e.py
clean:
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -name "*.pyc" -delete 2>/dev/null || true
rm -rf .pytest_cache/ dist/ build/ *.egg-info/ runs/ victor_tokenizers/