-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (33 loc) · 1.18 KB
/
Makefile
File metadata and controls
42 lines (33 loc) · 1.18 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
# TradePulse development commands
# Run 'make help' to see all available commands
.PHONY: help up down logs test lint format clean
help:
@echo "TradePulse Development Commands"
@echo "================================"
@echo "make up - Start full stack with Docker Compose"
@echo "make down - Stop all services"
@echo "make logs - Tail logs from all services"
@echo "make test - Run all tests"
@echo "make lint - Run flake8 and mypy"
@echo "make format - Run black formatter"
@echo "make clean - Remove all containers and volumes"
up:
docker-compose up --build -d
@echo "Waiting for services to be healthy..."
@sleep 10
@echo "TradePulse is running. Dashboard at http://localhost:8000"
down:
docker-compose down
logs:
docker-compose logs -f
test:
pytest tests/ -v --tb=short --junitxml=pytest-results.xml
lint:
flake8 src/ tests/ --max-line-length=100
mypy src/ --ignore-missing-imports
format:
black src/ tests/ --line-length=100
clean:
docker-compose down -v --remove-orphans
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete 2>/dev/null || true