-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
38 lines (30 loc) · 917 Bytes
/
Copy pathJustfile
File metadata and controls
38 lines (30 loc) · 917 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
default: install lint test
install:
uv lock --upgrade
uv sync --all-extras --frozen --group lint
lint:
uv run eof-fixer .
uv run ruff format
uv run ruff check --fix
uv run ty check
lint-ci:
uv run eof-fixer . --check
uv run ruff format --check
uv run ruff check --no-fix
uv run ty check
test *args:
uv run --no-sync pytest {{ args }}
test-branch:
@just test --cov-branch
publish:
rm -rf dist
uv version $GITHUB_REF_NAME
uv build
uv publish --token $PYPI_TOKEN
# Force-pushes built site to gh-pages; CI runs this on push to main.
# Manual invocation from a stale checkout will roll the live site back.
docs-deploy:
uvx --with-requirements docs/requirements.txt mkdocs gh-deploy --force
# Strict local docs build (no deploy). Mirrors CI's link/strict checks.
docs-build:
uvx --with-requirements docs/requirements.txt mkdocs build --strict