-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
44 lines (36 loc) · 881 Bytes
/
justfile
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
set windows-powershell
# show this list
default:
just --list
# run tests
test:
poetry run pytest
# publish a new version
publish:
poetry publish --build
# does a version bump commit
bump-commit type: && create-tag
poetry version {{type}}
git commit -am "$(poetry version | awk '{print $2}' | xargs echo "bump to")"
git push
# creates a new tag for the current version
create-tag:
git fetch --tags
poetry version | awk '{print $2}' | xargs git tag
git push --tags
# update deps
update:
nix flake update
# the poetry devs dont allow this with normal update for some unknown reason
poetry up --latest
# do a dep bump commit with tag and version
update-commit: update && create-tag
poetry version patch
git commit -am "bump deps"
git push
# format
format:
# TODO: treefmt?
isort .
black .
alejandra .