-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.pre-commit-config.yaml
56 lines (49 loc) · 1.43 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
# -*- mode: yaml -*-
# vim:ts=2:sw=2:ai:si:syntax=yaml
---
minimum_pre_commit_version: 2.18.1
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.2.0
hooks:
- id: check-executables-have-shebangs
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-merge-conflict
- id: trailing-whitespace
args: ["--markdown-linebreak-ext=md"]
- id: end-of-file-fixer
- id: mixed-line-ending
args: ["--fix=lf"]
- id: check-yaml
- id: pretty-format-json
args: ["--autofix", "--indent=2", "--no-sort-keys"]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.3
hooks:
- id: yamllint
- repo: https://github.com/ansible/ansible-lint.git
rev: v6.0.2
hooks:
- id: ansible-lint
files: \.(yaml|yml)$
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.17
hooks:
- id: shellcheck
- id: shfmt
args: ["-l", "-i", "4", "-ci", "-w"]
- repo: https://github.com/openstack-dev/bashate.git
rev: "2.1.0"
hooks:
- id: bashate
- repo: https://github.com/igorshubovych/markdownlint-cli.git
rev: v0.31.1
hooks:
- id: markdownlint
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook.git
rev: "v8.0.0"
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-conventional"]