-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (42 loc) · 1010 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
44 lines (42 loc) · 1010 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
exclude: 'mkdocs.yml'
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: end-of-file-fixer
- id: detect-private-key
# Python-specific hooks
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
hooks:
# First Ruff pass - import sorting only
- id: ruff
name: ruff-imports
files: ^(sdk/pyvalkyrie/|mcp/)
args: [
--fix,
--select=I,
--exit-non-zero-on-fix,
]
# Second Ruff pass - all checks
- id: ruff
name: ruff-check
files: ^(sdk/pyvalkyrie/|mcp/)
args: [
--fix,
--exit-non-zero-on-fix,
]
- id: ruff-format
files: ^(sdk/pyvalkyrie/|mcp/)
# Security scanning
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
exclude: "\\.nix$"