-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
118 lines (105 loc) · 3.25 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
---
default_stages:
- commit
default_install_hook_types:
- commit-msg
- pre-commit
- prepare-commit-msg
repos:
# https://github.com/pre-commit/pre-commit-hooks/tags
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.6.0"
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-vcs-permalinks
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: forbid-submodules
- id: trailing-whitespace
exclude: "^.gitignore$"
# https://github.com/prettier/prettier/tags
- repo: local
hooks:
- id: prettier
name: prettier
entry: prettier --write --list-different --ignore-unknown
language: node
types: [text]
exclude: "^project/"
additional_dependencies:
# https://github.com/igorshubovych/markdownlint-cli/tags
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: "v0.41.0"
hooks:
- id: markdownlint-fix
name: markdownlint
# https://github.com/adrienverge/yamllint/tags
- repo: https://github.com/adrienverge/yamllint
rev: "v1.35.1"
hooks:
- id: yamllint
entry: yamllint --strict
# https://github.com/pecigonzalo/pre-commit-shfmt/tags
- repo: https://github.com/pecigonzalo/pre-commit-shfmt
rev: "v2.2.0"
hooks:
- id: shell-fmt-go
# https://github.com/koalaman/shellcheck-precommit/tags
- repo: https://github.com/koalaman/shellcheck-precommit
rev: "v0.10.0"
hooks:
- id: shellcheck
name: shellcheck
# https://github.com/rhysd/actionlint/tags
- repo: https://github.com/rhysd/actionlint
rev: "v1.7.1"
hooks:
- id: actionlint-docker
name: actionlint
# https://github.com/bridgecrewio/checkov/tags
- repo: https://github.com/bridgecrewio/checkov
rev: "3.2.254"
hooks:
- id: checkov
name: checkov
args: [--config-file=.checkov.yml, --skip-path=vendor]
# https://github.com/jorisroovers/gitlint/tags
- repo: https://github.com/jorisroovers/gitlint
rev: "v0.19.1"
hooks:
- id: gitlint
# https://github.com/get-woke/woke/tags
- repo: https://github.com/get-woke/woke
rev: "v0.19.0"
hooks:
- id: woke-from-source
args: [--config=.woke.yaml]
# https://github.com/ansible/ansible-lint/tags
- repo: https://github.com/ansible/ansible-lint
rev: "v24.9.0"
hooks:
- id: ansible-lint
name: ansible-lint
entry: python3 -m ansiblelint -v --force-color --strict
additional_dependencies:
- "passlib"
# https://github.com/robertdebock/pre-commit/tags
- repo: https://github.com/robertdebock/pre-commit
rev: "v1.5.3"
hooks:
- id: ansible_role_find_empty_directories
- id: ansible_role_find_empty_files
- id: ansible_role_find_horizontal_when
- id: ansible_role_find_undefined_handlers
- id: ansible_role_find_unquoted_values
- id: ansible_role_find_unused_variable
args: [-f.]
- id: ansible_role_fix_readability