-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (43 loc) · 1.46 KB
/
Copy pathMakefile
File metadata and controls
57 lines (43 loc) · 1.46 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
# WEIPING_LAB
.PHONY: install test lint release-scan ui-lint ui-build verify clean run-discover run-status
install:
pip install -e ".[dev]"
cp -n .env.example .env || true
@echo ""
@echo " Add ANTHROPIC_API_KEY to .env"
@echo " Then: make run-status"
test:
python -m pytest -q
lint:
python scripts/run_ruff.py check lab/ cli/ api/ tests/ scripts/
python scripts/run_ruff.py format --check lab/ cli/ api/ tests/ scripts/
release-scan:
python scripts/release_scan.py
ui-lint:
npm --prefix ui run lint
ui-build:
npm --prefix ui run build
verify: test lint release-scan ui-lint ui-build
format:
python scripts/run_ruff.py format lab/ cli/ api/ tests/ scripts/
clean:
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -name "*.pyc" -delete 2>/dev/null || true
rm -rf .ruff_cache .mypy_cache
run-status:
python -m cli.main status
run-discover:
@read -p "Domain (e.g. LLM4Rec): " domain; \
python -m cli.main discover "$$domain"
run-extend:
@echo "Usage: python -m cli.main extend <domain> --method '...' --limits '...'"
help:
@echo ""
@echo " make install Install dependencies and copy .env.example"
@echo " make test Run test suite"
@echo " make lint Check code style"
@echo " make verify Run tests, release scan, UI lint, and UI build"
@echo " make format Auto-format code"
@echo " make run-status Check API key configuration"
@echo " make run-discover Start a discovery session"
@echo ""