-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (27 loc) · 1.3 KB
/
Makefile
File metadata and controls
39 lines (27 loc) · 1.3 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
.PHONY: help install dev-install run run-dev test test-api test-coverage setup-db setup-demo setup clean lint format
help: ## Show this help message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
install: ## Install production dependencies
uv sync --no-dev
dev-install: ## Install all dependencies including dev
uv sync
run: ## Run the API server in production mode
python run_api_server.py
run-dev: ## Run the API server with auto-reload
python run_api_server.py --reload --log-level debug
test: ## Run all tests
pytest tests/ -v
test-api: ## Run API tests only
pytest tests/api/ -v
test-coverage: ## Run tests with coverage report
pytest tests/ --cov=hqs --cov-report=html --cov-report=term
setup-db: ## Initialize the database
python src/hqs/demo/create_db.py
setup-demo: ## Create demo corpus data
python src/hqs/demo/create_corpus.py
setup: dev-install setup-db setup-demo ## Complete project setup
clean: ## Remove cache and temporary files
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete 2>/dev/null || true
find . -type d -name ".pytest_cache" -exec rm -rf {} + 2>/dev/null || true
rm -rf .coverage htmlcov/ 2>/dev/null || true