-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (32 loc) · 1.23 KB
/
Makefile
File metadata and controls
47 lines (32 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
.DEFAULT_GOAL := help
.PHONY: help install dev test lint format security audit serve init doctor docker-up docker-down clean
help: ## show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'
install: ## install synapto
uv sync
dev: ## install with dev extras (tests, linting)
uv sync --extra dev
test: ## run tests with pytest
uv run pytest tests/ -v
lint: ## run ruff linter
uv run ruff check src/ tests/
format: ## format code with ruff
uv run ruff format src/ tests/
security: ## run bandit security scan
uv run bandit -r src/synapto/ -c pyproject.toml
audit: ## audit dependencies for known vulnerabilities
uv run pip-audit
serve: ## start the mcp server (stdio)
uv run synapto serve
init: ## initialize database and config
uv run synapto init
doctor: ## check system health
uv run synapto doctor
docker-up: ## start all services with docker compose
docker compose up -d
docker-down: ## stop all docker compose services
docker compose down
clean: ## remove build artifacts and caches
rm -rf dist/ build/ *.egg-info/ .pytest_cache/ .ruff_cache/ htmlcov/
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true