-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
60 lines (56 loc) · 1.46 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
60
default_install_hook_types:
- pre-commit
- prepare-commit-msg
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-case-conflict
- id: check-docstring-first
- id: check-toml
- id: check-yaml
- id: debug-statements
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.3
hooks:
- id: gitleaks
verbose: true
- repo: meta
hooks:
- id: check-hooks-apply
verbose: true
- id: check-useless-excludes
verbose: true
- id: identity
verbose: true
- repo: local
hooks:
- id: chatgpt-commit-message
name: ChatGPT commit message
entry: python -m chatgpt_pre_commit_hooks.main
language: python
language_version: python3
additional_dependencies: ["openai>=0.27.4", "tiktoken>=0.3.3"]
args:
- "--hook"
- "chatgpt-commit-message"
- "--log-level"
- "debug"
- "--env-prefix"
- "work"
- "--max-char-count"
- "500"
- "--emoji"
- "--description"
stages: [prepare-commit-msg]
verbose: true
# - repo: https://github.com/commit-check/commit-check
# rev: v0.5.6
# hooks:
# - id: check-message
# verbose: true
# - id: check-branch
# - id: check-author-name
# - id: check-author-email