-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
96 lines (89 loc) · 3.02 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
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: check-added-large-files
- id: trailing-whitespace
exclude: README\.md$
- id: mixed-line-ending
args: ['--fix=auto']
- id: check-merge-conflict
- id: check-vcs-permalinks
- id: check-case-conflict
- id: detect-private-key
- id: end-of-file-fixer
- id: check-xml
files: .*\.(xml|config)$
types: ['file', 'text']
- id: check-executables-have-shebangs
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: forbid-tabs
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: check-mailmap
- id: forbid-binary
exclude: >
(?x)^(
docs/img/.*?png
)$
- repo: local
hooks:
- id: yamllint
name: YAML (yamllint) Linter
entry: yamllint
description: Linter for YAML files
language: system
args: ['-s', '--format', 'parsable']
files: \.(yaml|yml|ansible-lint|yamllint)$
- id: pylint
name: Python (pylint) Linter
entry: pylint
description: Linter for Python files
language: system
args: ['-rn', '-sn', '--errors-only', '--output-format=parseable']
types: ['python']
- id: shellcheck
name: Shell (shellcheck) Linter
entry: shellcheck
description: Linter for Shell scripts
language: system
args: ['-x', '-e', 'SC2086']
types: ['shell']
- id: ansiblelint
name: Ansible (ansible-lint) Linter
entry: ansible-lint
description: Linter for Ansible roles and playbooks
language: system
args: ['--force-color', '--parseable', 'provisioners/ansible/playbook.yml']
pass_filenames: false
- id: rubocoplint
name: Ruby (rubocop) Linter
entry: bin/rubocop
description: Linter for Ruby files
language: script
pass_filenames: false
- id: hadolint
name: Dockerfile (hadolint) Linter
entry: hadolint Dockerfile
description: Linter for Dockerfiles
language: system
pass_filenames: false
- id: vagrantlint
name: Vagrantfile Linter
entry: vagrant validate --ignore-provider Vagrantfile
description: Linter for Vagrantfile
language: system
pass_filenames: false
- id: mkdocslint
name: MkDocs (mkdocs) Linter
entry: mkdocs build
description: Linter for MkDocs markdown files
language: system
args: ['--strict']
pass_filenames: false
...