Skip to content

Commit bd6011d

Browse files
committed
chore: standardize pre-commit hooks
1 parent 4c861a6 commit bd6011d

2 files changed

Lines changed: 32 additions & 7 deletions

File tree

.pre-commit-config.yaml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,42 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v6.0.0
3+
rev: v5.0.0
44
hooks:
5-
- id: trailing-whitespace
6-
name: trim trailing whitespace
7-
- id: end-of-file-fixer
8-
name: fix end of files
5+
- id: check-yaml
96
- id: check-json
107
name: check json
11-
- id: check-added-large-files
12-
name: check for added large files
8+
files: \.json$
139
- id: check-merge-conflict
1410
name: check for merge conflicts
11+
- id: end-of-file-fixer
12+
name: fix end of files
13+
- id: trailing-whitespace
14+
name: trim trailing whitespace
15+
- id: no-commit-to-branch
16+
args: ['--branch', 'master']
17+
- id: check-added-large-files
18+
name: check for added large files
1519
- id: detect-private-key
1620
name: detect private key
1721
- id: mixed-line-ending
1822
name: mixed line ending
1923
args: ['--fix=lf']
2024

25+
- repo: https://github.com/rhysd/actionlint
26+
rev: v1.7.7
27+
hooks:
28+
- id: actionlint
29+
2130
- repo: https://github.com/Yelp/detect-secrets
2231
rev: v1.5.0
2332
hooks:
2433
- id: detect-secrets
2534
name: detect secrets
2635
args: ['--baseline', '.secrets.baseline']
2736
exclude: 'package-lock\.json$'
37+
38+
- repo: https://github.com/adrienverge/yamllint
39+
rev: v1.35.1
40+
hooks:
41+
- id: yamllint
42+
args: [--config-file, .yamllint.yml]

.yamllint.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
extends: default
2+
3+
rules:
4+
line-length:
5+
max: 200
6+
truthy:
7+
check-keys: false
8+
comments:
9+
min-spaces-from-content: 1
10+
document-start: disable

0 commit comments

Comments
 (0)