-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
59 lines (51 loc) · 1.42 KB
/
.pre-commit-config.yaml
File metadata and controls
59 lines (51 loc) · 1.42 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
54
55
56
57
58
59
fail_fast: true
default_language_version:
python: python3.14
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # v5.0.0
hooks:
- id: no-commit-to-branch
name: 🚧 Protected Branches Checker
args:
- --branch=master
pass_filenames: false
stages:
- pre-commit
- id: check-added-large-files
name: 📦 Large Files Checker
args:
- --maxkb=100
stages:
- pre-commit
- id: check-case-conflict
name: 🔠 Case Conflict Checker
stages:
- pre-commit
- id: check-toml
name: 📄 TOML Files Checker
files: '.*\.toml'
stages:
- pre-commit
- id: check-yaml
name: 📄 YAML Files Checker
files: '.*\.ya?ml'
args:
- --unsafe
stages:
- pre-commit
- repo: https://github.com/gitleaks/gitleaks
rev: 782f3104786efdce0f809bce8a9ff31f2fa1c9ed # v8.27.0
hooks:
- id: gitleaks
name: 🔍 Secrets Checker
entry: gitleaks detect --no-git --redact --verbose
stages:
- pre-commit
- repo: https://github.com/commitizen-tools/commitizen
rev: a0cc4901b0faaced74c713a9e355555fc4de0880 # v4.7.1
hooks:
- id: commitizen
name: 📝 Standard Commit Message Checker
stages:
- commit-msg