-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 716 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (19 loc) · 716 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
.PHONY: help install test lint format clean up down
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
install: ## Install dependencies
pip install -r requirements.txt
test: ## Run test suite
pytest tests/ -v --tb=short
lint: ## Run linters
flake8 src/ tests/ --max-line-length 120
mypy src/ --ignore-missing-imports
format: ## Format code
black src/ tests/ --line-length 120
clean: ## Clean artifacts
find . -type d -name __pycache__ -exec rm -rf {} +
rm -rf .pytest_cache .mypy_cache
up: ## Start full stack (Kafka + Redis + Detector)
docker-compose up -d
down: ## Stop all services
docker-compose down