-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
41 lines (41 loc) · 1.1 KB
/
.pre-commit-config.yaml
File metadata and controls
41 lines (41 loc) · 1.1 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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.0
hooks:
- id: ruff-check
args: ["--fix"]
name: lint
- id: ruff-format
name: format
args: ["--diff"]
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ["--baseline", ".secrets.baseline"]
name: leak
- repo: https://github.com/PyCQA/bandit
rev: 1.8.5
hooks:
- id: bandit
args:
[
"-r",
"-s",
"B101,B108",
"--",
"agentic-backend/agentic_backend",
"knowledge-flow-backend/knowledge_flow_backend",
]
name: sast
- repo: https://github.com/DetachHead/basedpyright-pre-commit-mirror
rev: v1.13.0
hooks:
- id: basedpyright
name: type-check-agentic
files: ^agentic-backend/
args: ["--project", "agentic-backend"]
- id: basedpyright
name: type-check-knowledge-flow
files: ^knowledge-flow-backend/
args: ["--project", "knowledge-flow-backend"]