-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
67 lines (61 loc) · 1.73 KB
/
.pre-commit-config.yaml
File metadata and controls
67 lines (61 loc) · 1.73 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
---
# Pre-commit configuration
# For details, visit: https://pre-commit.com/hooks.html
ci:
autofix_prs: false
repos:
# Codespell for spelling corrections
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
args:
- --ignore-words-list=ihs,ro,fo
- --skip="./.*,*.csv,*.json"
- --quiet-level=2
exclude_types:
- csv
- json
# General pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: detect-private-key
- id: check-merge-conflict
- id: check-added-large-files
- id: check-case-conflict
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: check-json
- id: check-yaml
args: [--allow-multiple-documents]
- id: mixed-line-ending
args: ["--fix=lf"]
# Secret detection
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
- repo: https://github.com/gitleaks/gitleaks
rev: v8.28.0
hooks:
- id: gitleaks
# YAML Linting
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.37.1
hooks:
- id: yamllint
# Ansible linting ############################################################
- repo: https://github.com/ansible-community/ansible-lint
rev: v25.9.0
hooks:
- id: ansible-lint
name: Ansible-lint
entry: python3 -m ansiblelint -v --offline --force-color -c .ansible-lint
language: python
pass_filenames: false
always_run: true
additional_dependencies:
- ansible-core>=2.16.5