-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
58 lines (47 loc) · 1.35 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
version: '3'
vars:
SERVICE: bunnynet-ai
tasks:
default:
cmds:
- task --list
# Application
run:
desc: Run
summary: |
Run application with CLI_ARGS (--).
Example:
- task run -- -k "489eb71e-1259-4e1a-83c2-2d7859eec469" -hn "myzone.b-cdn.net" -p "cute pixel art of a bunny with a colorful solid background" -n 5 -v
cmds:
- docker compose run --rm {{.SERVICE}} python main.py {{.CLI_ARGS | default "-h"}}
# Docker
up:
desc: Up service
cmds:
- docker compose up -d {{.CLI_ARGS | default "--build --remove-orphans --force-recreate"}}
down:
desc: Down service
cmds:
- docker compose down {{.CLI_ARGS | default "--rmi local --remove-orphans"}}
# Tools
contribute:
desc: Tasks for contributing
cmds:
- task: tools:pylint
- task: tools:pycodestyle
tools:pylint:
desc: Run pylint
cmds:
- docker compose run --rm {{.SERVICE}} pylint --max-line-length=120 --recursive=y .
tools:pycodestyle:
desc: Run pycodestyle
cmds:
- docker compose run --rm {{.SERVICE}} pycodestyle --max-line-length=120 --show-source .
tools:black:check:
desc: Run black dryrun
cmds:
- docker compose run --rm {{.SERVICE}} black . --diff --color
tools:black:fix:
desc: Run black
cmds:
- docker compose run --rm {{.SERVICE}} black .