forked from Ikalus1988/MisakaNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
36 lines (34 loc) · 1.02 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
36 lines (34 loc) · 1.02 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
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.5.0
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
# check-dco: 验证 commit message 包含 Signed-off-by 行
- repo: https://github.com/Ikalus1988/pre-commit-dco
rev: 179f50b
hooks:
- id: check-dco
# 本地 hook: Lesson Schema + 质量门禁
- repo: local
hooks:
- id: validate-lessons
name: validate lesson schema
entry: python3 scripts/validate_lessons.py
language: system
files: ^lessons/.*\.md$
pass_filenames: false
- id: check-lesson-quality
name: check lesson quality (naming, content, forbidden patterns)
entry: python3 scripts/check_lesson_quality.py
language: system
files: ^lessons/.*\.md$
pass_filenames: false