-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (28 loc) · 921 Bytes
/
Makefile
File metadata and controls
40 lines (28 loc) · 921 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
36
37
38
39
40
.PHONY: help
.PHONY: default
default: install
install:
uv sync --all-extras --all-groups --frozen
uvx pre-commit install
install-docs:
uv sync --group docs --frozen --no-group dev
update:
uv lock
uvx pre-commit autoupdate
$(MAKE) install
test: install
uv run pytest
check: install
uvx pre-commit run --all-files
coverage: install
uv run pytest --cov=my_pkg --cov-report=xml # todo: change my_pkg to the actual package name
cov: install
uv run pytest --cov=my_pkg --cov-report=term-missing # todo: change my_pkg to the actual package name
mypy: install
uv run mypy my_pkg --config-file pyproject.toml
# todo: chanege my_pkg to the actual package name
doctest: install-docs doc
doc:
uv run --no-sync sphinx-build -M doctest docs/source docs/build/ -W --keep-going --fresh-env
uv run --no-sync sphinx-build -M html docs/source docs/build/ -W --keep-going --fresh-env
check-all: check test mypy doc