-
Notifications
You must be signed in to change notification settings - Fork 197
Expand file tree
/
Copy pathJustfile
More file actions
82 lines (68 loc) · 1.58 KB
/
Copy pathJustfile
File metadata and controls
82 lines (68 loc) · 1.58 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[default]
[private]
default:
@just --list
[doc('Install all dependencies')]
[group('dev')]
sync:
uv sync --all-groups --all-extras
[doc('Format code')]
[group('dev')]
fmt:
uv run ruff check --select I --fix
uv run ruff format
[doc('Remove build artifacts')]
[group('dev')]
clean:
rm -rf dist .pytest_cache .ruff_cache
[doc('Run pytest tests')]
[group('test')]
test:
uv run pytest -v
[doc('Run bats integration tests')]
[group('test')]
bats:
bats -T tests/bats
[doc('Run all tests')]
[group('test')]
test-all: test bats
[doc('Run linters')]
[group('test')]
lint:
uv run ruff check
uv run ty check
[doc('Lint GitHub Actions workflows')]
[group('test')]
lint-ci:
pinact run --check --verify
zizmor .github/workflows/
[doc('Benchmark startup time')]
[group('bench')]
bench-startup:
hyperfine --warmup 3 --min-runs 10 ".venv/bin/jinja2 --version"
[doc('Build docker image')]
[group('docker')]
docker:
docker build --rm -t jinja2-cli .
[doc('Print docker bake configuration')]
[group('docker')]
bake:
VERSION=$(uv version --short) LATEST_TAG=dev \
docker buildx bake --print
[doc('Build distribution packages')]
[group('release')]
build: clean
uv build
[doc('Publish to PyPI')]
[group('release')]
publish: build
uv publish
[doc('Bump version, commit, tag, and push')]
[group('release')]
bump kind:
git diff --quiet --exit-code
uv version --bump {{ kind }}
git commit -am "bump $(uv version --short)"
git tag -a "v$(uv version --short)" -m "v$(uv version --short)"
git push
git push origin "v$(uv version --short)"