-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
55 lines (47 loc) · 1.19 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
# Documentation: https://pre-commit.com
# General flags
fail_fast: true # If there is an error it will fail the test
default_language_version:
python: python3.13
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: no-commit-to-branch
name: 🛡️ Protected Branches Checker
args:
- --branch=master
pass_filenames: false
stages:
- pre-commit
- pre-push
- 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: v8.20.1
hooks:
- id: gitleaks
name: 🔍 Secrets Checker
stages:
- pre-commit
- pre-push