forked from vitali87/code-graph-rag
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
60 lines (60 loc) · 1.75 KB
/
.pre-commit-config.yaml
File metadata and controls
60 lines (60 loc) · 1.75 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
exclude: ^codec/schema_pb2\.(py|pyi)$
- id: ruff-format
exclude: ^codec/schema_pb2\.(py|pyi)$
- repo: local
hooks:
- id: ty
name: ty check
entry: uv run ty check --exclude codebase_rag/tests/
language: system
types: [python]
exclude: ^codec/.*_pb2\.py$
pass_filenames: false
- repo: local
hooks:
- id: check-no-docs
name: no module docstrings or inline comments
entry: uv run python scripts/check_no_docs.py
language: system
types: [python]
exclude: ^codec/schema_pb2\.py$
- repo: local
hooks:
- id: generate-readme
name: generate README sections
entry: scripts/hooks/generate-readme.sh
language: script
pass_filenames: false
always_run: true
- repo: https://github.com/PyCQA/bandit
rev: 1.9.2
hooks:
- id: bandit
args: ["-c", "pyproject.toml", "--severity-level", "high"]
additional_dependencies: ["bandit[toml]"]
exclude: ^(codebase_rag/tests/|scripts/)
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.2.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
- repo: local
hooks:
- id: single-line-commit
name: single-line commit message
entry: scripts/hooks/check-single-line-commit.sh
language: script
stages: [commit-msg]