-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (26 loc) · 1.16 KB
/
Makefile
File metadata and controls
38 lines (26 loc) · 1.16 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
.PHONY: install dev test lint format typecheck coverage clean dashboard help
help: ## Show this help message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
install: ## Install package in production mode
pip install -e .
dev: ## Install package with all dev dependencies
pip install -e ".[all,dev]"
test: ## Run test suite
pytest tests/ -v --tb=short
test-fast: ## Run tests excluding slow markers
pytest tests/ -v --tb=short -m "not slow"
lint: ## Run linter
ruff check src/ tests/
format: ## Auto-format code
ruff format src/ tests/
ruff check --fix src/ tests/
typecheck: ## Run type checker
mypy src/evalkit/
coverage: ## Run tests with coverage report
pytest tests/ --cov=evalkit --cov-report=term-missing --cov-report=html
dashboard: ## Launch the Streamlit dashboard
streamlit run src/evalkit/dashboard/app.py
clean: ## Remove build artifacts and caches
rm -rf build/ dist/ *.egg-info .pytest_cache .mypy_cache .ruff_cache htmlcov/ .coverage
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
ci: lint typecheck test ## Run full CI pipeline locally