-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
46 lines (46 loc) · 1.07 KB
/
.pre-commit-config.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
---
fail_fast: false
repos:
- repo: local
hooks:
- id: docker-compose-check
name: Check docker-compose files
entry: /usr/local/bin/compose-check.sh
verbose: true
language: script
files: 'docker-compose\.ya?ml'
- repo: local
hooks:
- id: shellcheck
name: Run shellcheck
entry: shellcheck
language: system
verbose: true
types: [shell]
- repo: local
hooks:
- id: shfmt-check
name: Check shell script format with shfmt
verbose: true
entry: /usr/local/bin/shfmt
args: [-d]
language: system
types: [shell]
- repo: local
hooks:
- id: shfmt-fix
name: Check shell script format with shfmt
verbose: true
entry: /usr/local/bin/shfmt
args: [-w]
stages: [manual]
language: system
types: [shell]
- repo: local
hooks:
- id: yamllint
name: Run yamllint on yaml files
entry: yamllint
language: system
verbose: true
types: [yaml]