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
31 lines (24 loc) · 1.04 KB
/
Makefile
File metadata and controls
31 lines (24 loc) · 1.04 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
.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
test-parallel: ## Run tests in parallel
uv run pytest -n auto
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!"