-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
71 lines (63 loc) · 1.9 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
71 lines (63 loc) · 1.9 KB
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
---
default_install_hook_types:
- commit-msg
- pre-commit
repos:
# - repo: https://github.com/compilerla/conventional-pre-commit
# rev: v4.3.0
# hooks:
# - id: conventional-pre-commit
# stages: [commit-msg]
# args: [--verbose]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-merge-conflict
- id: check-symlinks
- id: debug-statements
# - id: end-of-file-fixer
- id: no-commit-to-branch
args: [--branch, main]
- id: trailing-whitespace
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.20.0
hooks:
- id: markdownlint-cli2
# Only run on the generated READMEs
files: ^.*README\.md$
- repo: "https://github.com/ansible/ansible-lint"
rev: v25.12.2
hooks:
- id: ansible-lint
additional_dependencies:
- ansible-core==2.20.0
- distlib
stages: [pre-commit]
pass_filenames: false
always_run: true
entry: "ansible-lint"
args: ["-c", ".ansible-lint", "--strict"]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.0
hooks:
- id: gitleaks
# Documentation validation
# Ensures generated documentation (README.md and role READMEs) are up-to-date
- repo: local
hooks:
- id: update-documentation
name: Generate documentation
entry: bash scripts/update-documentation.sh
language: system
pass_filenames: false
always_run: true
verbose: true
description: Regenerates README.md and role READMEs using docsible
- id: check-documentation
name: Verify documentation is committed
entry: bash scripts/check-documentation.sh
language: system
pass_filenames: false
always_run: true
description: Checks that generated documentation has no uncommitted changes
...