-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (30 loc) · 741 Bytes
/
Makefile
File metadata and controls
35 lines (30 loc) · 741 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
34
35
## Set up a virtual environment
.PHONY: venv
venv:
./scripts/setup_venv.sh
## Compile requirements
.PHONY: reqs
reqs:
uv pip compile pyproject.toml -o requirements.txt --all-extras
## Install dependencies
.PHONY: deps
deps:
pip install -r requirements.txt && pip install -e .[all]
## Generate documentation
.PHONY: docs
docs:
pdoc --docformat google -o docs/ src
## Increment git tag
.PHONY: tag
tag:
./scripts/increment-git-tag.sh
## Show this help message
.PHONY: help
help:
@awk '\
/^##/ {sub(/^## ?/, "", $$0); doc=$$0; next} \
/^[a-zA-Z0-9_.-]+:/ && $$1 !~ /^\./ { \
target=$$1; sub(/:.*/, "", target); \
print target "|" doc; doc="" \
} \
' $(MAKEFILE_LIST) | sort | awk -F"|" '{printf "%-20s %s\n", $$1, $$2}'