-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
45 lines (34 loc) · 869 Bytes
/
Makefile
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
44
# Install environments
install:
uv sync --all-extras -q
install-tests:
uv sync --no-dev --extra test -q
install-tutorials:
uv sync --no-dev --extra tutorials -q
install-docs:
uv sync --no-dev --extra docs --extra tutorials -q
# Tests
test-tutorials:
make install-tutorials
find docs/tutorials -name '*.ipynb' | grep -v 'nbconvert' | xargs -P 4 -I {} uv run jupyter nbconvert {} --to notebook --execute
make install
test:
make install-tests
uv run pytest src -n auto -rfE --failed-first --benchmark-disable
make install
benchmark:
make install
uv run pytest src --codspeed
qtest:
uv run pytest src -n auto -rfE --failed-first --benchmark-disable --testmon
# Lint and types
types:
make install
uv run pyright src
lint:
make install
uv run pre-commit run --all-files
docs:
make install-docs
uv run sphinx-build docs docs/_build
make install