-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
executable file
·47 lines (39 loc) · 997 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
45
46
47
# show this list
default:
just --list
# run tests
test:
poetry run pytest --cov=wizwad
# open coverage report
coverage:
poetry run pytest --cov=wizwad --cov-report html
xdg-open htmlcov/index.html
# does a version bump commit
bump-commit type: && create-tag publish
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
# publishes a new release to pypi
publish:
poetry publish --build
# 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 .