-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (49 loc) · 1.72 KB
/
Copy pathMakefile
File metadata and controls
63 lines (49 loc) · 1.72 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
# Makefile for GitHub OSINT Agent
.PHONY: help install dev install-frontend run test lint clean build docker-up docker-down
help:
@echo "GitHub OSINT Agent - Available commands:"
@echo ""
@echo " install Install Python dependencies"
@echo " dev Install development dependencies"
@echo " install-frontend Install frontend dependencies"
@echo " run Start the backend server"
@echo " run-frontend Start the frontend dev server"
@echo " test Run all tests"
@echo " lint Run code linting"
@echo " clean Clean up generated files"
@echo " build Build Python package"
@echo " docker-up Start Docker containers"
@echo " docker-down Stop Docker containers"
@echo ""
install:
pip install -r requirements.txt
dev:
pip install -r requirements.txt
pip install pytest pytest-asyncio pytest-cov ruff black
install-frontend:
cd frontend && npm install
run:
python run.py
run-frontend:
cd frontend && npm run dev
test:
pytest tests/ -v --cov=app --cov-report=term-missing
lint:
ruff check app/
black --check app/ || true
clean:
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
find . -type d -name ".ruff_cache" -exec rm -rf {} + 2>/dev/null || true
rm -rf dist/ build/ *.egg-info 2>/dev/null || true
cd frontend && rm -rf dist/ node_modules/.vite 2>/dev/null || true
build:
python -m build
docker-up:
docker-compose up -d
docker-down:
docker-compose down
# Quick start for development
quickstart: docker-up install install-frontend run
@echo "Server started at http://localhost:8000"