-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
62 lines (48 loc) 路 1.4 KB
/
Copy pathjustfile
File metadata and controls
62 lines (48 loc) 路 1.4 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
default:
@just --list
# Build the whole Rust workspace
build:
cargo build
# Run Rust unit tests
test:
cargo test
uv run pytest --ignore tests/integration .
# Format Rust and Python code
fmt:
cargo fmt --all
uv run ruff format
# Check formatting without writing
fmt-check:
cargo fmt --all --check
uv run ruff format --check
# Lint Rust and Python code
lint:
cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
uv run ruff check
# Typecheck Python
typecheck:
uv run ty check .
# Build the Sphinx documentation
docs:
uv run sphinx-build docs docs/_build
# Live-preview the documentation
docs-live:
uv run sphinx-autobuild docs docs/_build
# Everything CI runs (minus the self-packaging docker job)
ci: fmt-check lint typecheck test docs
# Run pre-commit hooks on all files
pre-commit:
uv run pre-commit run --all-files
# Regenerate the debmagic(1) manpage from the CLI's --help output
manpage:
cargo build -p debmagic
help2man --no-info -N -o debian/debmagic.1 target/debug/debmagic
# Build the debmagic snap
snap:
snapcraft pack
# Build debmagic itself with the docker driver
self-build *args:
cargo run --locked -p debmagic -- build binary --driver=docker --persistent --incremental {{ args }}
# Test debmagic itself with the docker driver
self-test *args:
cargo run --locked -p debmagic -- test --driver=docker {{ args }}