-
Notifications
You must be signed in to change notification settings - Fork 3
/
Taskfile.yml
62 lines (51 loc) · 1.32 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
59
60
61
62
version: '3'
vars:
SERVICE: pexels-scraper
env:
UID:
sh: id -u
GID:
sh: id -g
tasks:
default:
cmds:
- task --list
# Application
run:
desc: Extract subtitles, attachments, chapters and tags
summary: |
Example:
* task run -- -k "37c01053e18949935e52c0e9ddabc706166de7ca42c8357f0f4bf93e" -p '{"query":"Nature","page":1,"per_page":15}' -v
cmds:
- mkdir -p ${PWD}/output
- docker compose run --rm {{.SERVICE}} python main.py {{.CLI_ARGS}}
up:
desc: Up service
cmds:
- docker compose up -d --build --force-recreate --no-deps --remove-orphans
down:
desc: Down service
cmds:
- docker compose down --remove-orphans
# Tools
contribute:
desc: Tasks for contributing
cmds:
- task: pylint
- task: pycodestyle
pylint:
desc: Run pylint
cmds:
- docker compose run -u root --rm {{.SERVICE}} pylint --max-line-length=120 --recursive=y .
pycodestyle:
desc: Run pycodestyle
cmds:
- docker compose run -u root --rm {{.SERVICE}} pycodestyle --max-line-length=120 --show-source .
black:
desc: Run black dryrun
cmds:
- docker compose run -u root --rm {{.SERVICE}} black . --diff --color
black:fix:
desc: Run black
cmds:
- docker compose run -u root --rm {{.SERVICE}} black .