-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
59 lines (46 loc) · 930 Bytes
/
Copy pathjustfile
File metadata and controls
59 lines (46 loc) · 930 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
54
55
56
57
58
59
#!/usr/bin/env just --justfile
alias s := sync
alias f := format
alias l := lint
alias d := deps
alias t := test
alias pc := precommit
alias bg := baml-generate
set dotenv-load := true
OPENAI_API_KEY := `echo $OPENAI_API_KEY` # OPENAI_API_KEY is a required environment variable
# List available recipes
default:
@just --list
# Install/sync
sync:
uv sync
# Run formatter
format:
uv run ruff format
# Run linter
lint:
uv run ruff check --fix
# Check dependencies
deps:
uv run fawltydeps
# Run tests
test:
uv run pytest -v --cov=src --cov-report=html --cov-report=term
# Run format/lint/check
precommit:
just sync
just format
just lint
just deps
just test
# Generate baml client code
baml-generate:
uv run baml-cli generate
# Remove cached files
clean *args:
uv run pyclean . \
--debris cache coverage package pytest ruff \
--yes \
-e '.coverage' \
{{ args }}
uv cache prune