forked from EverMind-AI/EverMemOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (44 loc) · 1.84 KB
/
.pre-commit-config.yaml
File metadata and controls
48 lines (44 loc) · 1.84 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
repos:
- repo: https://github.com/psf/black
rev: 24.3.0 # Use latest stable version
hooks:
- id: black
stages: [pre-commit]
# Local hooks for non-English character detection
- repo: local
hooks:
# Check for non-English (CJK) characters in staged files
- id: check-i18n-files
name: Check Non-English Characters in Files
entry: env PYTHONPATH=src python -m devops_scripts.i18n.i18n_tool hook
language: system
stages: [pre-commit]
pass_filenames: true
# Skip this hook by setting SKIP_I18N_CHECK=1
# Check for non-English (CJK) characters in commit message
- id: check-i18n-commit-msg
name: Check Non-English Characters in Commit Message
entry: env PYTHONPATH=src python -m devops_scripts.i18n.i18n_tool hook --commit-msg
language: system
stages: [commit-msg]
pass_filenames: true
always_run: true
# Skip by adding [skip-i18n] or #skip-i18n-check in commit message
# Enforce Conventional Commits format in commit messages
- id: check-conventional-commit
name: Check Conventional Commit Message
entry: env PYTHONPATH=src python -m devops_scripts.commitlint.conventional_commit_lint hook
language: system
stages: [commit-msg]
pass_filenames: true
always_run: true
# Skip this hook by setting SKIP_CONVENTIONAL_COMMIT_CHECK=1
# Check for sensitive information in staged files
- id: check-sensitive-info
name: Check Sensitive Information
entry: env PYTHONPATH=src python -m devops_scripts.sensitive_info.sensitive_info_tool hook
language: system
stages: [pre-commit]
pass_filenames: true
# Skip this hook by setting SKIP_SENSITIVE_CHECK=1
# Skip specific lines by adding #skip-sensitive-check comment