forked from vitali87/code-graph-rag
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 997 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 997 Bytes
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
.PHONY: help install dev test clean python
help: ## Show this help message
@echo "Available targets:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
install: ## Install project dependencies with full language support
uv sync --extra treesitter-full
python: ## Install project dependencies for Python only
uv sync
dev: ## Setup development environment (install deps + pre-commit hooks)
uv sync --extra treesitter-full --extra dev --extra test
uv run pre-commit install
uv run pre-commit install --hook-type commit-msg
@echo "✅ Development environment ready!"
test: ## Run tests
uv run pytest
clean: ## Clean up build artifacts and cache
rm -rf .pytest_cache/ .mypy_cache/ .ruff_cache/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -name "*.pyc" -delete
build-grammars: ## Build grammar submodules
git submodule update --init --recursive --depth 1
@echo "Grammars built!"