-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathjustfile
More file actions
38 lines (30 loc) · 893 Bytes
/
justfile
File metadata and controls
38 lines (30 loc) · 893 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
# https://github.com/casey/just
# List justfile recipes
help:
just --list
# Update the environment with the latest version of the dependencies
dev-sync:
uv sync --all-extras --cache-dir .uv_cache
# Update the environment but not with the development dependencies
prod-sync:
uv sync --all-extras --no-dev --cache-dir .uv_cache
# Fix the code style and format
fix: dev-sync
uv run ruff check --fix
uv run ruff format
uv run scripts/license_headers.py src --fix
uv run scripts/license_headers.py tests --fix
# Execute the ruff code linter and format checker
check: dev-sync
uv run ruff check
# Execute all unit tests
test: dev-sync
uv run -m unittest discover -v -s tests
# Build the docs
docs: dev-sync
uv run sphinx-build -b html docs/source docs/build
# Build the release package
build:
rm -rf dist
uv build --wheel
uv build --sdist