-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjustfile
More file actions
52 lines (41 loc) · 897 Bytes
/
justfile
File metadata and controls
52 lines (41 loc) · 897 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
set windows-shell := ["powershell"]
# show this list
[default]
default:
just --list
# run tests
test: build-test-bins
uv run pytest
# does a version bump commit
bump-commit type="minor": && create-tag
uv version --bump {{type}}
git commit -am ("bump to " + (uv version --short))
git push
# creates a new tag for the current version
create-tag:
git fetch --tags
git tag (uv version --short)
git push --tags
# update deps
[linux]
update:
nix flake update
uv sync --all-groups --upgrade
# update deps
[windows]
update:
uv sync --all-groups --upgrade
# do a dep bump commit with tag and version
update-commit: update && create-tag
uv version --bump patch
git commit -am "bump deps"
git push
# format
format:
# TODO: treefmt?
isort .
black .
alejandra .
# build test binaries
build-test-bins:
cargo build --release