-
Notifications
You must be signed in to change notification settings - Fork 11
/
justfile
44 lines (34 loc) · 915 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 export
set dotenv-load
VENV_DIRNAME := ".venv"
@_default:
just --list
[private]
@check_uv:
if ! command -v uv &> /dev/null; then \
echo "uv could not be found. Exiting."; \
exit; \
fi
# setup development environment
@bootstrap: check_uv
if [ -x $VENV_DIRNAME ]; then \
echo "Already bootstraped. Exiting."; \
exit; \
fi
echo "Installing dependencies"
just upgrade
# upgrade/install all dependencies defined in pyproject.toml
@upgrade: check_uv
uv sync --all-extras --upgrade
# run pre-commit rules on all files
@lint: check_uv
uvx --with pre-commit-uv pre-commit run --all-files
# run test suite
@test: check_uv
uv run pytest --cov --cov-report=html --cov-report=term
# run test suite
@test-all: check_uv
uvx --with tox-uv tox
# serve docs during development
@serve-docs: check_uv
uvx --with mkdocs-material mkdocs serve