-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcookbook.yaml
58 lines (51 loc) · 842 Bytes
/
cookbook.yaml
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
$globals:
version: "8.1"
vars:
RUNNER: uv run
FROZEN: --frozen
UV_GROUPS: --all-groups
build:
phony: true
requires:
- clean
commands:
- ${RUNNER} p build
install:
phony: true
keep_ts: true
requires:
- uv.lock
commands:
- uv sync ${FROZEN} ${UV_GROUPS}
format:
phony: true
requires:
- install
commands:
- ${RUNNER} ruff format .
- ${RUNNER} ruff check --fix-only .
lint:
phony: true
requires:
- install
commands:
- ${RUNNER} ruff check .
- ${RUNNER} ruff format --check .
- ${RUNNER} uv lock --check
- ${RUNNER} mypy .
tests:
phony: true
requires:
- install
commands:
- ${RUNNER} pytest ${.extra}
clean:
phony: true
commands:
- rm -f dist/*
uv.lock:
update: true
requires:
- pyproject.toml
commands:
- uv lock