-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathTaskfile.yaml
74 lines (62 loc) · 1.48 KB
/
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
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
version: '3'
tasks:
clean-sync:
desc: Clean and Sync Environment
cmds:
- poetry install --sync
run-pytest:
desc: Run unittests in a testing environment
cmds:
- task: clean-sync
- task: setup-tests
- poetry run pytest
setup-tests:
internal: true
cmds:
- poetry install --with tests --sync
run-cleaners:
desc: Run Black and isort against the code
cmds:
- task: setup-cleaning
- task: run-black-formatter
- task: run-isort-formatter
setup-cleaning:
internal: true
cmds:
- task: clean-sync
- poetry install --with cleaning --sync
run-black-formatter:
internal: true
cmds:
- poetry run black pymoe
run-isort-formatter:
internal: true
cmds:
- poetry run isort pymoe
setup-docs:
internal: true
cmds:
- poetry install --with documentation --sync
build-docs:
desc: Run mkdocs build in a documentation environment
cmds:
- task: clean-sync
- task: setup-docs
- poetry run mkdocs build
serve-docs:
desc: Run mkdocs serve in a documentation environment
cmds:
- task: clean-sync
- task: setup-docs
- poetry run mkdocs serve
make-build:
desc: Clean the code and build the distribution
cmds:
- task: run-cleaners
- task: clean-sync
- poetry build
make-shell:
desc: Clean the environment and open a poetry shell
cmds:
- task: clean-sync
- poetry shell