-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
66 lines (53 loc) · 1.55 KB
/
Copy pathjustfile
File metadata and controls
66 lines (53 loc) · 1.55 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
python := "3.13"
# Print this help documentation
help:
just --list
# Sync requirements
sync:
uv sync
# Run linting
lint:
uv run ruff format --check
uv run ruff check
# Run formatting
format:
uv run ruff format
uv run ruff check --fix
# Run static typechecking
typecheck:
uv run --python {{python}} --no-dev --group typecheck --isolated \
mypy typenames tests/typechecks.py --install-types --non-interactive
# Run the tests
test *args:
uv run --python {{python}} --isolated --no-editable --no-dev --group tests --reinstall \
python -I -m pytest {{args}}
# Run all tests with Python version matrix
test-all:
for python in 3.9 3.10 3.11 3.12 3.13; do \
just python=$python test; \
done
# Generate notebook that inspects types
inspect-types:
uv run --python {{python}} --isolated --only-group inspect-types \
jupyter nbconvert inspect_types/_inspect_types.ipynb \
--to notebook \
--output inspect_types_{{python}}.ipynb \
--execute \
--allow-errors
# Generate notebook that inspects types for all Python versions
inspect-types-all:
for python in 3.9 3.10 3.11 3.12 3.13; do \
just python=$python inspect-types; \
done
# Generate docs
docs:
uv run --directory docs mkdocs build
# Serve docs
docs-serve:
uv run --directory docs mkdocs serve
# Pull gh-pages branch from GitHub to local
pull-gh-pages:
git fetch origin gh-pages:gh-pages
# Push gh-pages branch from local to GitHub
push-gh-pages:
git push origin gh-pages:gh-pages