This repository was archived by the owner on Aug 20, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskfile.yml
More file actions
82 lines (72 loc) · 1.51 KB
/
Copy pathtaskfile.yml
File metadata and controls
82 lines (72 loc) · 1.51 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
version: "3"
vars:
TASK_VERSION: 3.41.0
HADOLINT_VERSION: 2.12.0
includes:
lint: .taskfiles/lint.yml
mkdocs: .taskfiles/mkdocs.yml
update: .taskfiles/update.yml
tasks:
default:
cmds:
- task: help
init:
desc: Init project
silent: true
cmds:
- poetry install --with dev,lint,test,docs
clean:
desc: Cleanup project
silent: true
cmds:
- poetry env remove --all
- rm -rf .pytest_cache
- rm -rf .ruff_cache
- rm -rf output
- rm -rf site
- rm -rf tests/__pycache__
- rm -rf .devcontainer/Dockerfile.bak
- rm -rf .github/workflows/lint.yml.bak
- rm -rf .github/workflows/pages.yml.bak
- rm -rf .github/workflows/test.yml.bak
- rm -rf template/.devcontainer/Dockerfile.bak
reinit:
desc: Reinit project
silent: true
cmds:
- task: clean
- task: init
lint:
desc: Run project linters
silent: true
cmds:
- task: lint:all
test:
desc: Run project tests
silent: true
cmds:
- rm -rf output
- poetry run pytest tests -v
- |
cp tests/fixtures/override.yml output/.taskfiles
cd output
task help
task init
task clean
task reinit
task lint
task test
task namespace:test
task mkdocs:build
pipeline:
desc: Run lint and test tasks
silent: true
cmds:
- task: lint
- task: test
help:
desc: Display help
silent: true
cmds:
- task --list