-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (34 loc) · 1.01 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
37 lines (34 loc) · 1.01 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
# Pre-commit hooks for AI-governed repositories.
# Copy this file to your repo root as .pre-commit-config.yaml
# Then run: pre-commit install
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.2
hooks:
- id: gitleaks
name: Detect secrets
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
name: Validate YAML
- id: end-of-file-fixer
name: Fix EOF
- id: trailing-whitespace
name: Trim trailing whitespace
- id: check-merge-conflict
name: Check merge conflicts
- id: no-commit-to-branch
name: Prevent direct commits to main
args: ['--branch', 'main', '--branch', 'prd']
- id: check-added-large-files
name: Check large files
args: ['--maxkb=500']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.1
hooks:
- id: ruff
name: Lint Python
args: ['--fix']
- id: ruff-format
name: Format Python