Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
69 lines (62 loc) · 2.17 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
69 lines (62 loc) · 2.17 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude: ^(experiments/|notebooks/)
- id: end-of-file-fixer
exclude: ^(experiments/|notebooks/)
- id: check-yaml
- id: check-added-large-files
args: ['--maxkb=500']
- id: detect-private-key
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.4
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/PyCQA/bandit
rev: 1.8.3
hooks:
- id: bandit
args: [-r, src/dartlab/, -c, pyproject.toml]
exclude: ^(experiments/|tests/)
- repo: local
hooks:
- id: blog-media-ssot
name: blog-media-ssot (HF 콘텐츠 주소 객체 강제)
entry: python -X utf8 blog/_scripts/blogMediaGate.py --staged
language: system
always_run: true
pass_filenames: false
stages: [pre-commit]
- id: quality-gate
name: quality-gate (complexity + dead code)
entry: python tests/audit/qualityGate.py --changed-only
language: system
types: [python]
pass_filenames: false
- id: lint-camelcase
name: lint-camelcase (camelCase + docstring, diff-based)
entry: python -X utf8 tests/audit/lint_camelcase_ast.py --changed --strict
language: system
types: [python]
pass_filenames: false
exclude: ^(tests/|experiments/|notebooks/)
# P0~P3 warning 모드. P3 끝 후 entry 에 --strict 추가.
- id: cycle-scan
name: cycle-scan (양방향 import cycle 검출 — P3 까지 warning)
entry: python -X utf8 tests/audit/cycleScan.py
language: system
always_run: true
pass_filenames: false
stages: [pre-commit]
# P0 placeholder (aliases.json 비어있음). P5 채워지면 --strict.
- id: naming-consistency
name: naming-consistency (매개변수 표준 사전 검사)
entry: python -X utf8 tests/audit/namingConsistency.py
language: system
types: [python]
pass_filenames: false
exclude: ^(tests/|experiments/|notebooks/)