-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathjustfile
More file actions
34 lines (27 loc) · 730 Bytes
/
Copy pathjustfile
File metadata and controls
34 lines (27 loc) · 730 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
app := "uwhoisd"
docker_repo := "ghcr.io/kgaughan/" + app
[private]
default:
@just --list
# setup virtual environment
devel:
@uv sync --frozen
# tidy everything with ruff
tidy:
@uv run --frozen ruff check --fix
# run the test suite
tests:
@uv run --frozen pytest
# run the typechecker
typecheck:
@uv run --frozen mypy src
# clean up any caches or temporary files and directories
clean:
@rm -rf .mypy_cache .pytest_cache .ruff_cache .venv dist htmlcov .coverage
@find . -name \*.orig -delete
# build the docker image
docker:
@rm -rf dist
@uv build --wheel
@docker buildx build -t {{docker_repo}}:$(git describe --tags --always) .
@docker tag {{docker_repo}}:$(git describe --tags --always) {{docker_repo}}:latest