-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (43 loc) · 1.24 KB
/
.pre-commit-config.yaml
File metadata and controls
46 lines (43 loc) · 1.24 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
args:
- "--allow-multiple-documents"
# https://github.com/pre-commit/pre-commit-hooks/issues/273
- "--unsafe"
exclude: ^images/bootc/goss.yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: no-commit-to-branch
args:
- "--branch"
- "main"
- id: trailing-whitespace
- repo: https://github.com/ansible-community/ansible-lint.git
rev: v25.8.1
hooks:
- id: ansible-lint
args: ["--profile", "min"]
entry: ansible-lint -v
- repo: https://github.com/gitleaks/gitleaks
rev: v8.28.0
hooks:
- id: gitleaks
# Disallow `.yml` files in the repo, i.e. assume usage of `.yaml` for YAML
- repo: local
hooks:
- id: no-yml-extension
name: no-yml-extension
language: fail
files: \.yml$
entry: "bash -c 'find . -ina'"
exclude: .gitlab-ci.yml