forked from antoinebou12/uml-mcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (48 loc) · 1.42 KB
/
Makefile
File metadata and controls
59 lines (48 loc) · 1.42 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
.PHONY: help install install-dev clean test lint coverage docker-build docker-run docker-test docker-stop
# Default target
help:
@echo "UML-MCP Makefile"
@echo "----------------"
@echo "Commands:"
@echo " make install Install production dependencies"
@echo " make install-dev Install development dependencies"
@echo " make clean Clean temporary files and caches"
@echo " make test Run tests"
@echo " make lint Run linting checks"
@echo " make coverage Run tests with coverage report"
@echo " make docker-build Build Docker images"
@echo " make docker-run Run services using Docker Compose"
@echo " make docker-test Run tests in Docker container"
@echo " make docker-stop Stop Docker containers"
# Installation targets
install:
pip install -r requirements.txt
install-dev: install
pip install -r requirements-dev.txt
# Cleaning
clean:
rm -rf __pycache__
rm -rf .pytest_cache
rm -rf .coverage
rm -rf htmlcov
rm -rf .mypy_cache
find . -name "*.pyc" -delete
# Testing and linting
test:
pytest -xvs mcp/
pytest -xvs kroki/
pytest -xvs mermaid/
pytest -xvs D2/
lint:
pre-commit run --all-files
coverage:
pytest --cov=mcp --cov=kroki --cov=mermaid --cov=D2 --cov-report=html
# Docker commands
docker-build:
docker-compose build
docker-run:
docker-compose up -d
docker-test:
docker-compose run --rm uml-mcp pytest -xvs
docker-stop:
docker-compose down