-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathTaskfile.yml
47 lines (37 loc) · 788 Bytes
/
Taskfile.yml
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
---
version: '3'
tasks:
default:
cmds:
- task: format
- task: lint_and_test
lint_and_test:
deps: [lint, test]
format:
cmds:
- ruff format --respect-gitignore
- ruff check --fix
- pnpm format
lint:
deps: [lint_yaml, lint_ruff_format, lint_ruff_check, lint_pnpm]
lint_yaml:
cmds:
- >-
find . \( -name node_modules -o -name .venv \) \
-prune -o -type f \( -name "*.yaml" -o -name "*.yml" \) -print \
| xargs yamllint
lint_ruff_format:
cmds:
- ruff format --respect-gitignore --check
lint_ruff_check:
cmds:
- ruff check --respect-gitignore
lint_pnpm:
cmds:
- pnpm lint
lint_typos:
cmds:
- typos -V && typos
test:
cmds:
- pnpm test