-
Notifications
You must be signed in to change notification settings - Fork 50
/
.pre-commit-config.yaml
35 lines (35 loc) · 1.09 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
# Disabling the separate yamllint as it can now be done by ansible-lint with our config moved to TLD.
# - repo: https://github.com/adrienverge/yamllint.git
# rev: v1.26.3
# hooks:
# - id: yamllint
# entry: "yamllint"
# types: [yaml]
- repo: https://github.com/ansible/ansible-lint.git
rev: v24.7.0
hooks:
# see discussions here about what arguments are used, and behavior
# https://github.com/ansible/ansible-lint/issues/649
# Roles will trigger an "unknown file type"
# https://github.com/ansible/ansible-lint/issues/808
- id: ansible-lint
pass_filenames: false
always_run: true
entry: ansible-lint
args:
- --profile=production
additional_dependencies:
- ansible-core>=2.13
- yamllint>=1.26,<2.0
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.13.0
hooks:
- id: markdownlint-cli2
...