-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathjustfile
More file actions
44 lines (34 loc) · 1.17 KB
/
justfile
File metadata and controls
44 lines (34 loc) · 1.17 KB
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 all dependencies
install:
uv sync --all-groups
# Run tests
test *FLAGS:
uv run --group test pytest {{FLAGS}}
# Run tests with coverage
test-cov *FLAGS:
uv run --group test pytest --nbmake --cov=src --cov=tests --cov-report=xml -n auto {{FLAGS}}
# Run type checking
typing:
uv run --group typing --group test --isolated ty check
# Run linting
lint:
uvx prek run -a
# Run static analysis for GitHub Actions
zizmor:
uvx --from zizmor zizmor .
# Run all checks (format, lint, typing, test)
check: lint typing test
# Build documentation
docs *FLAGS:
uv run --group plugin-list python scripts/update_plugin_list.py
uv run --group docs zensical build {{FLAGS}}
# Serve documentation with auto-reload
docs-serve *FLAGS:
uv run --group plugin-list python scripts/update_plugin_list.py
uv run --group docs zensical serve -a 127.0.0.1:8000 {{FLAGS}}
# Run tests with lowest dependency resolution (like CI)
test-lowest:
uv run --python 3.10 --group test --resolution lowest-direct pytest --nbmake
# Run tests with highest dependency resolution (like CI)
test-highest:
uv run --python 3.14 --group test --resolution highest pytest --nbmake -n auto