-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
89 lines (80 loc) · 2.07 KB
/
.pre-commit-config.yaml
File metadata and controls
89 lines (80 loc) · 2.07 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
repos:
# General
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-added-large-files
args: ["--maxkb=1024"]
- id: check-merge-conflict
- id: detect-private-key
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-case-conflict
- id: no-commit-to-branch
args: ["--branch", "main"]
# Secrets
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ["--baseline", ".secrets.baseline"]
- repo: local
hooks:
- id: gitleaks
name: gitleaks
entry: gitleaks git --pre-commit --redact --no-banner
language: system
pass_filenames: false
# Shell
- repo: local
hooks:
- id: shellcheck
name: shellcheck
entry: shellcheck --severity=warning
language: system
types: [shell]
- repo: local
hooks:
- id: shellharden
name: shellharden
entry: shellharden --check
language: system
types: [shell]
# Markdown
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.48.0
hooks:
- id: markdownlint
args: ["--fix"]
# Prose
- repo: local
hooks:
- id: vale
name: vale
entry: bash -c 'vale sync 2>/dev/null; vale "$@"' --
language: system
types: [markdown]
# GitHub Actions
- repo: https://github.com/rhysd/actionlint
rev: v1.7.12
hooks:
- id: actionlint
- repo: local
hooks:
- id: zizmor
name: zizmor
entry: zizmor --config zizmor.yml .github/workflows/
language: system
files: ^\.github/workflows/.*\.ya?ml$
pass_filenames: false
# Conventional Commits
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.4.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]