-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
53 lines (37 loc) · 1010 Bytes
/
justfile
File metadata and controls
53 lines (37 loc) · 1010 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
set dotenv-load := true
default:
@just --list
install:
uv sync --all-groups
dev:
uv run fastapi dev
test:
uv run pytest --cov=app --cov=relab_rpi_cam_models --cov-report=term-missing
test-unit:
uv run pytest tests/unit
test-integration:
uv run pytest tests/integration
test-slowest:
uv run pytest --durations=20 -q
typecheck:
uv run ty check .
lint:
uv run ruff check --no-fix .
just typecheck
format:
uv run ruff check --fix .
uv run ruff format .
pre-commit:
uv run pre-commit run --all-files
check:
just lint
just test
audit:
uv audit --preview-features audit --locked --no-dev
build:
uv build
clean:
rm -rf dist/ .venv/ .pytest_cache/ __pycache__/
# Print the local direct-connection API key from the local key endpoint.
show-key:
@python3 -c 'import sys; from urllib.request import urlopen; sys.stdout.write(urlopen("http://127.0.0.1:8018/local-key", timeout=2).read().decode("utf-8", "replace").strip() + "\n")'