-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (44 loc) · 1.09 KB
/
Makefile
File metadata and controls
60 lines (44 loc) · 1.09 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
.PHONY: install dev test lint format typecheck clean build publish
# Development
install:
pip install -e .
dev:
pip install -e ".[dev]"
# Testing
test:
pytest -v
test-cov:
pytest --cov=capiscio_mcp --cov-report=html --cov-report=term-missing --cov-fail-under=80
test-watch:
pytest-watch
# Code quality
lint:
ruff check capiscio_mcp tests
lint-fix:
ruff check --fix capiscio_mcp tests
format:
black capiscio_mcp tests
format-check:
black --check capiscio_mcp tests
typecheck:
mypy capiscio_mcp
# All checks
check: lint format-check typecheck test
# Building
clean:
rm -rf build dist *.egg-info .pytest_cache .mypy_cache .ruff_cache htmlcov .coverage
find . -type d -name __pycache__ -exec rm -rf {} +
build: clean
python -m build
# Publishing
publish-test: build
twine upload --repository testpypi dist/*
publish: build
twine upload dist/*
# Proto generation (when capiscio-core has mcp.proto)
proto:
python -m grpc_tools.protoc \
-I../capiscio-core/proto \
--python_out=capiscio_mcp/_proto \
--grpc_python_out=capiscio_mcp/_proto \
../capiscio-core/proto/capiscio/v1/mcp.proto