-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
27 lines (21 loc) · 693 Bytes
/
justfile
File metadata and controls
27 lines (21 loc) · 693 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
set dotenv-load
ARGS_TEST := env("_UV_RUN_ARGS_TEST", "")
@_:
just --list --justfile '{{ justfile() }}'
# run tests Try -n auto (for xdist) or --keep-copied-projects
[group('qa')]
test *args:
uv run {{ ARGS_TEST }} -m pytest {{ args }}
# ensure we have an up-to-date Python virtual environment
[group('lifecycle')]
install:
if [ ! -d ".venv" ]; then uv venv --seed; fi
uv pip install -r requirements.txt
# remove Python virtual environment and temporary files
[group('lifecycle')]
clean:
rm -rf .venv .pytest_cache
find . -type d -name "__pycache__" -exec rm -r {} +
# regenerate Python virtual environment from scratch
[group('lifecycle')]
fresh: clean install