-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
73 lines (63 loc) · 1.69 KB
/
.pre-commit-config.yaml
File metadata and controls
73 lines (63 loc) · 1.69 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
fail_fast: true
default_language_version:
python: python3.12
exclude: ^instant_python/templates/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # v5.0.0
hooks:
- 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
- id: check-merge-conflict
name: 🔀 Merge Conflict Checker
stages:
- pre-commit
- repo: https://github.com/gitleaks/gitleaks
rev: 782f3104786efdce0f809bce8a9ff31f2fa1c9ed # v8.27.0
hooks:
- id: gitleaks
name: 🔍 Secrets Checker
entry: gitleaks detect --redact --verbose
stages:
- pre-commit
- repo: https://github.com/commitizen-tools/commitizen
rev: a0cc4901b0faaced74c713a9e355555fc4de0880 # v4.7.1
hooks:
- id: commitizen
name: 📝 Conventional Commit Message Checker
stages:
- commit-msg
- repo: local
hooks:
- id: lint
name: 🧹 Code Linter
entry: make check-lint
language: system
stages:
- pre-push
- id: format
name: 🎨 Code Formatter
entry: make check-format
language: system
stages:
- pre-push