-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
57 lines (37 loc) · 1.09 KB
/
justfile
File metadata and controls
57 lines (37 loc) · 1.09 KB
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
# --- Formatting ---
format:
uv run ruff format vantage_sdk
# --- Linting ---
lint:
uv run ruff check --fix vantage_sdk
# --- Testing ---
test *FLAGS:
uv run pytest {{FLAGS}}
test-vcr *FLAGS:
VCR_ENABLED=true uv run pytest --record-mode=none --block-network {{FLAGS}}
test-vcr-record *FLAGS:
VCR_ENABLED=true uv run pytest --record-mode=once {{FLAGS}}
test-vcr-rewrite *FLAGS:
VCR_ENABLED=true uv run pytest --record-mode=rewrite {{FLAGS}}
test-live *FLAGS:
uv run pytest --disable-recording {{FLAGS}}
# --- Type Checking ---
typecheck:
uv run basedpyright vantage_sdk/
typecheck-tests:
uv run basedpyright tests/
# --- Run all checks ---
check: format lint typecheck test
# --- Setup ---
setup:
git config core.hooksPath .githooks
# --- Code Generation ---
generate-models:
uv run datamodel-codegen \
--url https://api.vantage.sh/v2/oas_v3.json \
--output vantage_sdk/models/gen_models/
fetch-spec:
curl -sS https://api.vantage.sh/v2/oas_v3.json -o openapi_spec.json
regenerate-models: fetch-spec
rm -rf vantage_sdk/models/gen_models/
uv run datamodel-codegen