-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
77 lines (59 loc) · 2.11 KB
/
Copy pathMakefile
File metadata and controls
77 lines (59 loc) · 2.11 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
69
70
71
72
73
74
75
76
77
.PHONY: help install install-dev test test-unit test-integration test-coverage lint format type-check security clean build docker-build docker-run docs pre-commit
help:
@echo "Available commands:"
@echo " install - Install production dependencies"
@echo " install-dev - Install development dependencies"
@echo " test - Run all tests"
@echo " test-unit - Run unit tests only"
@echo " test-integration - Run integration tests only"
@echo " test-coverage - Run tests with coverage report"
@echo " lint - Run all linters"
@echo " format - Format code with black and isort"
@echo " type-check - Run mypy type checking"
@echo " security - Run security checks (bandit, safety)"
@echo " clean - Remove build artifacts and cache"
@echo " build - Build distribution packages"
@echo " docker-build - Build Docker image"
@echo " docker-run - Run Docker container"
@echo " docs - Generate documentation"
@echo " pre-commit - Run pre-commit hooks on all files"
install:
pip install -e .
install-dev:
pip install -e ".[dev]"
pre-commit install
test:
pytest tests/ -v
test-unit:
pytest tests/ -v -m "unit or not integration"
test-integration:
pytest tests/ -v -m integration
test-coverage:
pytest tests/ -v --cov --cov-report=term-missing --cov-report=html
lint:
flake8 orchestrator adapters tests
pylint orchestrator adapters
format:
black orchestrator adapters tests
isort orchestrator adapters tests
type-check:
mypy orchestrator adapters
security:
bandit -r orchestrator adapters -c pyproject.toml
safety check --json
clean:
find . -type f -name '*.pyc' -delete
find . -type d -name '__pycache__' -delete
find . -type d -name '*.egg-info' -exec rm -rf {} +
rm -rf build dist .coverage htmlcov .pytest_cache .mypy_cache
build: clean
python -m build
docker-build:
docker build -t ai-orchestrator:latest .
docker-run:
docker run -it --rm ai-orchestrator:latest
docs:
cd docs && make html
pre-commit:
pre-commit run --all-files
all: format lint type-check test-coverage security