-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathTaskfile.yml
47 lines (39 loc) · 853 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
# https://taskfile.dev
version: '3'
vars:
GREETING: Hello, World!
tasks:
default:
cmds:
- task -l
silent: true
check:
desc: "Run pre-commit hooks"
cmds:
- pre-commit run -a
pre-commit:
cmds:
- pre-commit install
sources:
- .git/hooks/pre-commit
- .pre-commit-config.yaml
generates:
- .git/hooks/pre-commit
method: checksum
pre-commit-setup:
cmds:
- pip3 install pre-commit
status:
- which pre-commit
setup:
desc: Bootstrap dev environment
preconditions:
- sh: "[ $(python3 --version | cut -d ' ' -f 2 | awk -F'.' '{print ($2 > 6) }') = 1 ]"
msg: "Required python version not found (>=3.6)"
cmds:
- task: pre-commit-setup
- task: pre-commit
test:
desc: Run tests
cmds:
- echo "Nothing to do"