-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (34 loc) · 1019 Bytes
/
Makefile
File metadata and controls
43 lines (34 loc) · 1019 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
41
42
43
SHELL = /bin/bash
.PHONY: help
help:
@echo "Commands:"
@echo "install : Install dependencies into virtual environment."
@echo "install-dev : Install all, including dev, dependencies into virtual environment for local development."
@echo "update : Install new requriements into the virtual environment."
@echo "test : Run pytests."
@echo "test-notebooks : Execute all notebooks in nbs/."
@echo "coverage : Run pytest with coverage report"
.PHONY: install-tests
install-tests:
uv sync
.PHONY: install-test-notebooks
install-test-notebooks:
uv sync --group nb
.PHONY: install-dev
install-dev:
uv sync --all-extras && \
uv run pre-commit install
.PHONY: update
update:
uv sync --reinstall --group dev
.PHONY: test
test:
uv run pytest -vx tests
.PHONY: test-notebooks
test-notebooks:
set -e; for notebook in nbs/core/*.ipynb; do \
uv run jupyter execute --timeout=60 "$$notebook"; \
done
.PHONY: coverage
coverage:
uv run pytest --cov=src --cov-report html tests