-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (46 loc) Β· 1.91 KB
/
Makefile
File metadata and controls
61 lines (46 loc) Β· 1.91 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
61
# Claude Parser Development Makefile
# Provides shortcuts for common development tasks
.PHONY: help install test test-local-ci ci-info ci-clean lint format check push-safe
# Default target
help: ## Show this help message
@echo "Claude Parser Development Commands"
@echo "=================================="
@echo ""
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
install: ## Install dependencies with Poetry
pip install poetry
poetry install
test: ## Run tests locally
poetry run pytest -v --tb=short
test-all: ## Run all tests including integration
poetry run pytest tests/ -v --tb=short
quality-check: ## Run quality gates (tests with coverage)
CLAUDE_PROJECTS_PATH=./test-data/claude-projects poetry run pytest tests/ --cov=claude_parser --cov-report=term --cov-report=xml || true
test-local-ci: ## Run GitHub Actions locally using act
@echo "π Running GitHub Actions locally..."
./scripts/test-local-ci.sh ci
ci-info: ## Show local CI information
./scripts/test-local-ci.sh info
ci-clean: ## Clean local CI cache and artifacts
./scripts/test-local-ci.sh clean
lint: ## Run linting
poetry run ruff check .
format: ## Format code
poetry run ruff format .
check: ## Run all quality checks
poetry run ruff check .
poetry run ruff format --check .
poetry run pytest --cov=claude_parser --cov-report=term-missing
push-safe: ## Test locally then push to remote (recommended)
@echo "π Testing locally before push..."
@make test-local-ci
@echo "β
Local tests passed!"
@echo "π Pushing to remote..."
git push
install-push-hook: ## Install pre-push hook for automatic local CI testing
@cp .pre-push .git/hooks/pre-push
@chmod +x .git/hooks/pre-push
@echo "β
Pre-push hook installed"
clean: ## Clean up build artifacts and caches
rm -rf build/ dist/ *.egg-info/ .coverage htmlcov/ .pytest_cache/
find . -type d -name __pycache__ -delete