-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
75 lines (70 loc) · 2.52 KB
/
.pre-commit-config.yaml
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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.6.0
hooks:
- id: check-merge-conflict
name: Check for merge conflicts before committing
- id: check-case-conflict
name: Check for case conflicts for case-sensitive filesystems
- id: check-symlinks
name: Check for broken syslinks in the repository
- id: destroyed-symlinks
name: Check for destroyed symlinks in the repository
- id: check-added-large-files
name: Check no large files have been added to the commit
- id: trailing-whitespace
name: Check all trailing whitespace is removed
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
name: Check all files end in a new-line only
- repo: https://github.com/jumanjihouse/pre-commit-hooks.git
rev: 3.0.0
hooks:
- id: script-must-have-extension
name: Check non-executable shell scripts end with .sh extension
- id: script-must-not-have-extension
name: Check executable shell scripts to not have extension
- id: shellcheck
name: Check shell scripts with shellcheck
- id: shfmt
name: Check shell scripts formtting with shfmt
args: ['-i', '2', '-bn', '-ci']
- repo: https://github.com/python-jsonschema/check-jsonschema.git
rev: 0.29.2
hooks:
- name: Check the Dependabot configuration for correctness
id: check-dependabot
- name: Check the GitHub Workflows for correctness
id: check-github-workflows
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
name: Run Prettier to check and format selected file types
types_or:
- json
- yaml
- markdown
additional_dependencies:
- prettier@3.2.5
args:
- --config=.prettier.yaml
# This pre-commit-hook does not properly process singleQuote in the
# configuration file above, so hard-code it here, or checks will fail
- --single-quote
- repo: https://github.com/igorshubovych/markdownlint-cli.git
rev: v0.41.0
hooks:
- id: markdownlint
name: Check Markdown correctness and formatting
args:
- --config
- .markdownlint.yaml
- --ignore-path
- .markdownignore
- repo: https://github.com/zricethezav/gitleaks.git
rev: v8.18.4
hooks:
- id: gitleaks
name: Check for hard-coded secrets, keys, and credentials