-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
57 lines (47 loc) · 1.2 KB
/
justfile
File metadata and controls
57 lines (47 loc) · 1.2 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
[private]
default:
@just --summary --unsorted
format:
uv run ruff format
lint:
uv run ruff check
uv run ruff format --diff
uv run ty check
unit: (test "tests/unit")
functional: (test "tests/functional")
[private]
stress: (test "tests/stress")
[private]
test args="tests/unit tests/functional":
uv run pytest -vv {{args}}
[private]
zizmor:
uv run zizmor --format=sarif . > workflows.sarif
[private]
command-ref:
#!/bin/bash
set -e
diff <(uv run --script .scripts/extract_command_ref.py) <(uv run gimmegit -h)
[private]
demo:
#!/bin/bash
set -e
package_dir="$PWD"
mkdir -p demo
cd demo
rm -rf jubilant/dwilding-my-feature
uv run --project "$package_dir" gimmegit --allow-nested -u canonical dwilding/jubilant my-feature
cd jubilant/dwilding-my-feature
echo
uv run --project "$package_dir" gimmegit
[private]
deps:
#!/bin/bash
set -e
uv lock --check
# If we bumped a direct dependency in uv.lock, we should also bump the minimum version constraint
# in pyproject.toml (because gimmegit doesn't require uv). Let's check for any inconsistencies:
uv_output=$(uv lock --dry-run --resolution lowest-direct 2>&1)
if grep '^Update ' <<<"$uv_output"; then
exit 1
fi