-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
36 lines (36 loc) · 1.12 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: run-lint
name: Run make lint
entry: make lint
language: system
pass_filenames: false
- id: run-tests
name: Run make test
entry: make test
language: system
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-case-conflict
name: Check filename case conflicts
- id: check-merge-conflict
name: Check that no merge conflict marker exists
- id: check-executables-have-shebangs
name: Check that executable files have shebangs
- id: check-shebang-scripts-are-executable
name: Check that files with shebangs are executable
- id: end-of-file-fixer
name: Makes sure files end in a newline and only a newline
- id: trailing-whitespace
name: Trims trailing whitespace
args: [--markdown-linebreak-ext=md] # add exception for markdown linebreaks
- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.2
hooks:
- id: gitleaks
name: Protect and discover secrets using Gitleaks