-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (18 loc) · 803 Bytes
/
Makefile
File metadata and controls
27 lines (18 loc) · 803 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
.DEFAULT_GOAL := help
.PHONY: help setup hooks lint lint-all unit-test test test-debug
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
setup: hooks ## Run full local setup
@echo "Setup complete."
hooks: ## Install prek git hooks
.hermit/bin/prek install
lint: ## Run prek hooks on staged/changed files
.hermit/bin/prek run
lint-all: ## Run prek hooks on all files
.hermit/bin/prek run --all-files
unit-test: ## Run e2e unit tests
uv run --project e2e python -m unittest discover -s e2e/src -p 'test_*.py' -v
test: ## Run e2e tests in fresh Tart VM
uv run --project e2e dotfiles-e2e
test-debug: ## Run e2e tests, keep VM on failure
uv run --project e2e dotfiles-e2e --keep