-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 842 Bytes
/
Makefile
File metadata and controls
33 lines (26 loc) · 842 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
29
30
31
32
33
.PHONY: install-packages
install-packages: ## Install all required packages
uv sync
.PHONY: install-pre-commit
install-pre-commit: ## Install pre-commit hooks
uv run prek install
.PHONY: install
install: install-packages install-pre-commit ## Ensure the environment is set up
.PHONY: lint
lint: ## Run linters (pre-commit hooks across the tree)
uv run prek run --all-files
.PHONY: test
test: ## Run unit tests. Override scope with opts, e.g. `make test opts='-m engine_parity'`
uv run pytest $(opts)
.PHONY: typecheck
typecheck: ## Run mypy
uv run mypy
.PHONY: build
build: ## Build the sdist and wheel into dist/
uv build
.PHONY: help
help:
@echo "Usage: make [target]"
@echo ""
@echo "Available targets:"
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " \033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)