-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (23 loc) · 889 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (23 loc) · 889 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
.PHONY: setup run test update clean distclean
setup:
@echo "Installing uv..."
@curl -LsSf https://astral.sh/uv/install.sh | sh 2>/dev/null || echo "uv already installed"
@echo "Installing dependencies..."
PATH="$$HOME/.local/bin:$$PATH" uv sync --extra dev
@if [ ! -f .env ]; then cp .env.example .env; echo "Created .env — add your API keys before running"; fi
@echo "\nSetup complete. Run 'make run' to start."
run:
uv run streamlit run nrchd/app.py
test:
uv run pytest tests/ -v
update:
uv sync --upgrade --extra dev
clean:
rm -rf outputs/*.csv outputs/*.json __pycache__ .streamlit/cache
@echo "Cleaned outputs and caches. Knowledge bases preserved."
distclean: clean
@echo "WARNING: This will permanently delete all ingested knowledge bases."
@echo "Press Ctrl+C within 5 seconds to abort..."
@sleep 5
rm -rf knowledge_bases/*
@echo "Knowledge bases deleted."