This repository has been archived by the owner on Apr 15, 2022. It is now read-only.
generated from stegmannb/ansible-role-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
100 lines (91 loc) · 2.57 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
---
exclude: |
(?x)^(
.vscode/.*|
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
exclude: package-lock.json
- id: detect-private-key
- id: check-symlinks
- id: mixed-line-ending
args: [--fix=lf]
- id: check-merge-conflict
- id: check-byte-order-marker
- id: check-executables-have-shebangs
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.0.1
hooks:
- id: add-trailing-comma
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.9
hooks:
- id: remove-tabs
- repo: https://github.com/adrienverge/yamllint
rev: v1.25.0
hooks:
- id: yamllint
name: yamllint
description: This hook runs yamllint.
entry: yamllint --strict
language: python
types: [file, yaml]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.24.0
hooks:
- id: markdownlint
name: markdownlint
description: "Checks the style of Markdown/Commonmark files."
entry: markdownlint
language: node
types: [markdown]
minimum_pre_commit_version: 0.15.0
- repo: https://github.com/ansible/ansible-lint
rev: v4.3.5
hooks:
- id: ansible-lint
name: Ansible-lint
description: This hook runs ansible-lint.
entry: ansible-lint --force-color -x 106
language: python
# do not pass files to ansible-lint, see:
# https://github.com/ansible/ansible-lint/issues/611
pass_filenames: false
always_run: true
- repo: https://github.com/IamTheFij/ansible-pre-commit
rev: v0.1.2
hooks:
- id: encryption-check
name: Ansible Vault Encryption Check
description: Checks that vault files are encrypted
entry: encryption-check.sh
files: ((^|/)vault|vault.y[a]{0,1}ml$|.vault$)
language: script
- repo: https://github.com/prettier/pre-commit
rev: v2.2.0
hooks:
- id: prettier
name: prettier
entry: |
prettier
--write
--list-different
--ignore-unknown
language: node
exclude: |
(?x)^(
.vscode/|
)$
- repo: https://github.com/robertdebock/pre-commit
rev: v1.1.2
hooks:
- id: ansible_role_find_unused_variable
- repo: https://github.com/robertdebock/pre-commit
rev: v1.1.2
hooks:
- id: ansible_role_find_empty_files