-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
62 lines (57 loc) · 2.16 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.4.0
hooks:
- id: no-commit-to-branch
name: Check this commit is not to the main/master branch
- 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: check-json
name: Check JSON files for correctness
- 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/python-jsonschema/check-jsonschema.git
rev: 0.23.0
hooks:
- name: Check the GitHub Workflows for correctness
id: check-github-workflows
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.31.0
hooks:
- id: yamllint
name: Lint YAML files for correctness and formatting
args: [--config-file, .yamllint.yaml]
- 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', '-sr']
- repo: https://github.com/igorshubovych/markdownlint-cli.git
rev: v0.34.0
hooks:
- id: markdownlint-docker
name: Check Markdown correctness and formatting
- repo: https://github.com/zricethezav/gitleaks.git
rev: v8.16.3
hooks:
- id: gitleaks-docker
name: Check for hard-coded secrets, keys, and credentials