Skip to content

Commit 533bf51

Browse files
feat: add repository pre-commit hooks
1 parent 04278ae commit 533bf51

File tree

3 files changed

+917
-184
lines changed

3 files changed

+917
-184
lines changed

.pre-commit-config.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v6.0.0
4+
hooks:
5+
- id: check-yaml
6+
args:
7+
- --allow-multiple-documents
8+
exclude: ^(packages/(agent-mesh|agent-os|agent-sre)/(charts|deployments/helm)/|packages/agent-os/templates/policies/|examples/marketplace-governance/policies/)
9+
- id: check-merge-conflict
10+
- id: trailing-whitespace
11+
- id: end-of-file-fixer
12+
13+
- repo: https://github.com/Yelp/detect-secrets
14+
rev: v1.5.0
15+
hooks:
16+
- id: detect-secrets
17+
args:
18+
- --baseline
19+
- .secrets.baseline
20+
21+
- repo: https://github.com/astral-sh/ruff-pre-commit
22+
rev: v0.15.7
23+
hooks:
24+
- id: ruff
25+
args:
26+
- packages/agent-runtime/src/agent_runtime
27+
files: ^packages/agent-runtime/src/agent_runtime/.*\.py$
28+
- id: ruff-format
29+
args:
30+
- packages/agent-runtime/src/agent_runtime
31+
- --check
32+
files: ^packages/agent-runtime/src/agent_runtime/.*\.py$
33+
34+
- repo: https://github.com/pre-commit/mirrors-mypy
35+
rev: v1.19.1
36+
hooks:
37+
- id: mypy
38+
args:
39+
- --ignore-missing-imports
40+
- packages/agent-runtime/src/agent_runtime
41+
pass_filenames: false

0 commit comments

Comments
 (0)