-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (28 loc) · 793 Bytes
/
Makefile
File metadata and controls
34 lines (28 loc) · 793 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
PYTEST_FLAGS=-W error::SyntaxWarning
.PHONY: help
help: #! Show this help message
@echo 'Usage: make [target] ... '
@echo ''
@echo 'Targets:'
@grep -h -F '#!' $(MAKEFILE_LIST) | grep -v grep | sed 's/:.*#!/:/' | column -t -s":"
.PHONY: install
install: #! Install package dependencies
uv sync --all-groups
.PHONY: test
test: #! Run unit tests
test: install
uv run pytest $(PYTEST_FLAGS)
.PHONY: lint
lint: #! Run type analysis and linting checks
lint: install
uv run mypy src/ldai
uv run isort --check --atomic src/ldai
uv run pycodestyle src/ldai
.PHONY: build
build: #! Build distribution files
build: install
uv build --out-dir dist
.PHONY: docs
docs: #! Generate sphinx-based documentation
uv sync --group docs
uv run sphinx-build -W --keep-going -M html docs docs/build