-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
68 lines (53 loc) · 1.86 KB
/
Copy pathMakefile
File metadata and controls
68 lines (53 loc) · 1.86 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
58
59
60
61
62
63
64
65
66
67
68
.PHONY: help install dev-install test lint format clean run-backend run-frontend docker-up docker-down setup
help: ## Show this help message
@echo "ARES - Autonomous Resilient Enterprise Suite"
@echo "============================================="
@echo "Available commands:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
install: ## Install dependencies
pip install --upgrade pip
pip install -r requirements.txt
python -m spacy download de_core_news_sm
dev-install: ## Install development dependencies
pip install --upgrade pip
pip install -r requirements.txt
pip install -e ".[dev]"
python -m spacy download de_core_news_sm
test: ## Run tests
pytest
test-cov: ## Run tests with coverage
pytest --cov=src --cov-report=html --cov-report=term
lint: ## Run linters
ruff check src tests
mypy src
format: ## Format code
black src tests
ruff check --fix src tests
clean: ## Clean generated files
find . -type d -name "__pycache__" -exec rm -r {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete
find . -type f -name "*.pyo" -delete
find . -type f -name ".coverage" -delete
rm -rf htmlcov/
rm -rf .pytest_cache/
rm -rf .mypy_cache/
rm -rf dist/
rm -rf build/
rm -rf *.egg-info/
run-backend: ## Start FastAPI backend
uvicorn src.api.main:app --reload --port 8000
run-frontend: ## Start Streamlit frontend
streamlit run src/ui/app.py
docker-up: ## Start Docker containers
docker-compose up -d
docker-down: ## Stop Docker containers
docker-compose down
docker-logs: ## View Docker logs
docker-compose logs -f
setup: ## Initial setup (create directories, copy .env)
mkdir -p data chroma_db uploads
@if [ ! -f .env ]; then \
cp .env.example .env; \
echo "⚠️ Please edit .env with your configuration"; \
fi
all: clean install setup ## Clean, install, and setup