Skip to content

Commit 2aa0bf6

Browse files
authored
Add inline docs to the pre-commit config (#302)
1 parent 26c95f6 commit 2aa0bf6

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

.pre-commit-config.yaml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ repos:
1818
name: Run identity
1919
description: Run the identity check
2020
- id: check-hooks-apply
21-
name: Check hooks apply to the repository
21+
name: run check-hooks-apply
22+
description: check that all the hooks apply to the repository
23+
2224
- repo: local
2325
hooks:
2426
- id: check-zip-file-is-not-committed
@@ -30,28 +32,32 @@ repos:
3032
track and have security implications. Please remove the zip file from the repository.
3133
files: (?i)\.zip$
3234
- id: npm-ci
33-
name: Install Node dependencies
35+
name: run npm-ci
36+
description: Install Node dependencies
3437
entry: npm ci
3538
language: system
3639
pass_filenames: false
3740
- id: eleventy-build-check
38-
name: Eleventy build and output check
41+
name: run eleventy-build-check
42+
description: Eleventy build and output check
3943
entry: npm run build
4044
language: system
4145
pass_filenames: false
4246
- id: npm-audit
43-
name: Run npm-audit
47+
name: run npm-audit
4448
description: Run npm audit
4549
entry: npm audit --audit-level=high
4650
language: system
4751
pass_filenames: false
52+
4853
# GO-based
4954
# - repo: https://github.com/gitleaks/gitleaks
5055
# rev: v8.30.0
5156
# hooks:
5257
# - id: gitleaks
5358
# name: Run gitleaks
5459
# description: Check for secrets with gitleaks
60+
5561
- repo: https://github.com/Lucas-C/pre-commit-hooks
5662
rev: v1.5.6
5763
hooks:
@@ -61,23 +67,38 @@ repos:
6167
args: ["644"]
6268
files: \.md$
6369
stages: [manual]
70+
6471
- repo: https://github.com/pre-commit/pre-commit-hooks
6572
rev: v6.0.0
6673
hooks:
6774
- id: trailing-whitespace
75+
name: run trailing-whitespace
76+
description: trims trailing whitespace
6877
args: [--markdown-linebreak-ext=md]
6978
- id: end-of-file-fixer
79+
name: run end-of-file-fixer
80+
description: makes sure files end in a newline and only a newline
7081
- id: fix-byte-order-marker
7182
name: run fix-byte-order-marker
7283
description: removes UTF-8 byte order marker
7384
- id: forbid-submodules
7485
name: run forbid-submodules
7586
description: forbids any submodules in the repository
7687
- id: check-yaml
88+
name: run check-yaml
89+
description: attempts to load all yaml files to verify syntax
7790
- id: check-added-large-files
91+
name: run check-added-large-files
92+
description: prevent giant files from being committed
7893
- id: check-json
94+
name: run check-json
95+
description: check JSON files for syntax errors
7996
- id: check-merge-conflict
97+
name: run check-merge-conflict
98+
description: check for merge conflict markers
8099
- id: check-case-conflict
100+
name: run check-case-conflict
101+
description: check for case conflicts in file names
81102
- id: check-vcs-permalinks
82103
name: run check-vcs-permalinks
83104
description: ensures that links to vcs websites are permalinks
@@ -89,6 +110,8 @@ repos:
89110
name: run detect-private-key
90111
description: checks for the existence of private keys
91112
- id: mixed-line-ending
113+
name: run mixed-line-ending
114+
description: replaces or checks mixed line ending
92115

93116
- repo: https://github.com/pre-commit/mirrors-prettier
94117
rev: v4.0.0-alpha.8

0 commit comments

Comments
 (0)