-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
59 lines (49 loc) · 1.26 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
repos:
################
# GENERAL CHECKS
################
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
name: Large Files Check
args: ["--maxkb=1024"]
- id: detect-private-key
name: Check Private Keys
- id: check-merge-conflict
name: Merge Conflict Resolution Check
- id: end-of-file-fixer
name: Newline EOF Checker
- id: fix-byte-order-marker
name: Fix UTF-8 byte order marker
- id: trailing-whitespace
name: Whitespace Cleaning Check
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.2
hooks:
- id: gitleaks
name: GitLeaks Checks
- repo: https://github.com/sirosen/texthooks
rev: 0.6.7
hooks:
- id: fix-smartquotes
- id: fix-spaces
- id: fix-ligatures
############
# CODE LINT
############
- repo: local
hooks:
- id: yaml-lint
name: "Yaml Lint"
entry: |
bash -c 'uds run lint:yaml'
language: system
- repo: local
hooks:
- id: shell-check
name: "Shell Check"
entry: |
bash -c 'uds run lint:shell'
language: system