-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
37 lines (34 loc) · 886 Bytes
/
Taskfile.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
version: '3'
vars:
# If you run bare environment or activated venv, set '' (blank string)
RUN_PYTHON: 'uv run'
tasks:
setup:
desc: 'Setup workspace'
cmds:
- 'uv sync --frozen --all-extras'
- '{{.RUN_PYTHON}} tools/i18n-compile.py'
- 'lefthook install'
verify:
desc: 'Verify environment by all procs'
cmds:
- 'lefthook run pre-commit --all-files'
- '{{.RUN_PYTHON}} pytest'
- task: 'docs:intl'
- task: 'docs:build-linkcheck'
- task: 'docs:build-dirhtml'
- 'uv build'
build:
desc: 'Build as python project wheel'
cmds:
- '{{.RUN_PYTHON}} tools/i18n-compile.py'
- 'uv build'
release-*:
desc: 'Run release process'
vars:
LEVEL: '{{index .MATCH 0}}'
cmds:
- 'age {{.LEVEL}}'
- 'uv sync --all-extras' # To write out as lock-file
includes:
docs: './docs'