-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
53 lines (48 loc) · 1.46 KB
/
.pre-commit-config.yaml
File metadata and controls
53 lines (48 loc) · 1.46 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
- id: check-json
files: \.json$
- id: check-merge-conflict
name: check for merge conflicts
- id: end-of-file-fixer
name: fix end of files
- id: trailing-whitespace
name: trim trailing whitespace
- id: no-commit-to-branch
args: ['--branch', 'main']
- id: check-added-large-files
name: check for added large files
- id: detect-private-key
name: detect private key
- id: mixed-line-ending
name: mixed line ending
args: ['--fix=lf']
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
name: detect secrets
args: ['--baseline', '.secrets.baseline']
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
types: [shell]
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.13.1-1
hooks:
- id: shfmt
args: [--write, --indent, '2', --case-indent, --binary-next-line]
exclude: ^docker_aliases\.sh$ # zsh-specific ${(f)...} syntax is incompatible with shfmt
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
args: [--config-file, .yamllint.yml]