-
Notifications
You must be signed in to change notification settings - Fork 120
Expand file tree
/
Copy path.pre-commit-hooks.yaml
More file actions
45 lines (42 loc) · 1.39 KB
/
.pre-commit-hooks.yaml
File metadata and controls
45 lines (42 loc) · 1.39 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
# Pre-commit hooks for Agent Governance Toolkit.
# Add this repo as a pre-commit hook source:
#
# repos:
# - repo: https://github.com/microsoft/agent-governance-toolkit
# rev: main
# hooks:
# - id: validate-policy
# - id: validate-plugin-manifest
# - id: evaluate-plugin-policy
# args: ['--policy', 'policies/marketplace-policy.yaml']
#
- id: validate-policy
name: Validate Agent-OS policy files
language: python
entry: python -m agent_os.policies.cli validate
files: '.*polic.*\.(yaml|yml|json)$'
types_or: [yaml, json]
additional_dependencies:
- pydantic>=2.0.0
- pyyaml>=6.0.0
- id: validate-plugin-manifest
name: Validate plugin manifest schema
description: Validates plugin manifests (plugin.json) for required fields and schema compliance
language: python
entry: python -m agent_marketplace.hooks validate-manifest
files: '(^|/)plugin\.(json|yaml|yml)$'
types_or: [json, yaml]
additional_dependencies:
- pydantic>=2.0.0
- pyyaml>=6.0.0
- id: evaluate-plugin-policy
name: Evaluate plugin against governance policy
description: Evaluates plugin manifests against a governance policy file
language: python
entry: python -m agent_marketplace.hooks evaluate-policy
files: '(^|/)plugin\.(json|yaml|yml)$'
types_or: [json, yaml]
additional_dependencies:
- pydantic>=2.0.0
- pyyaml>=6.0.0
- agent-os-kernel