Skip to content

Commit 5431aaf

Browse files
committed
Add justfile.
1 parent 3b22583 commit 5431aaf

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

justfile

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Default recipe to display available commands
2+
default:
3+
@just --list
4+
5+
# Install all dependencies
6+
install:
7+
uv sync --all-groups
8+
9+
# Run tests
10+
test:
11+
uv run --group test pytest
12+
13+
# Run tests with coverage
14+
test-cov:
15+
uv run --group test pytest --nbmake --cov=src --cov=tests --cov-report=xml -n auto
16+
17+
# Run tests with notebook validation
18+
test-nb:
19+
uv run --group test pytest --nbmake -n auto
20+
21+
# Run type checking
22+
typing:
23+
uv run --group typing mypy check
24+
25+
# Run type checking on notebooks
26+
typing-nb:
27+
uv run --group typing nbqa mypy --ignore-missing-imports .
28+
29+
# Run linting
30+
lint:
31+
uvx --with pre-commit-uv pre-commit run -a
32+
33+
# Run all checks (format, lint, typing, test)
34+
check: lint typing test
35+
36+
# Build documentation
37+
docs:
38+
uv run --group docs sphinx-build docs/source docs/build
39+
40+
# Serve documentation with auto-reload
41+
docs-serve:
42+
uv run --group docs sphinx-autobuild docs/source docs/build
43+
44+
# Run tests with lowest dependency resolution (like CI)
45+
test-lowest:
46+
uv run --group test --resolution lowest-direct pytest --nbmake -n auto
47+
48+
# Run tests with highest dependency resolution (like CI)
49+
test-highest:
50+
uv run --group test --resolution highest pytest --nbmake -n auto

0 commit comments

Comments
 (0)