forked from AlexAI-MCP/OpenCrab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (40 loc) · 1.23 KB
/
Copy pathMakefile
File metadata and controls
52 lines (40 loc) · 1.23 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
.PHONY: help install dev-install status serve query manifest lint format test coverage seed
PYTHON := python
PIP := pip
PYTEST := pytest
help:
@echo "OpenCrab - MetaOntology MCP Server"
@echo ""
@echo "Usage:"
@echo " make install Install package"
@echo " make dev-install Install with dev extras"
@echo " make status Check store connections"
@echo " make serve Start MCP server on stdio"
@echo " make manifest Print MetaOntology grammar"
@echo " make seed Seed databases with example data"
@echo " make lint Run ruff linter"
@echo " make format Run black + isort"
@echo " make test Run test suite"
@echo " make coverage Run tests with coverage report"
install:
$(PIP) install -e .
dev-install:
$(PIP) install -e ".[dev]"
status:
$(PYTHON) -m opencrab.cli status
serve:
$(PYTHON) -m opencrab.cli serve
manifest:
$(PYTHON) -m opencrab.cli manifest
seed:
$(PYTHON) scripts/seed_ontology.py
lint:
ruff check opencrab tests
format:
black opencrab tests scripts
isort opencrab tests scripts
test:
$(PYTEST) tests/ -v
coverage:
$(PYTEST) tests/ --cov=opencrab --cov-report=term-missing --cov-report=html
@echo "HTML report: htmlcov/index.html"