forked from opendatahub-io/ai-helpers
-
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 (35 loc) · 1.07 KB
/
.pre-commit-config.yaml
File metadata and controls
37 lines (35 loc) · 1.07 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
# Baseline pre-commit configuration for Red Hat AI-Ready repositories
#
# This config includes:
# 1. Red Hat security/compliance hooks (rh-pre-commit)
# 2. AI-readiness hooks from this repository
#
# To use this config:
# 1. Copy this file to your repo root as .pre-commit-config.yaml
# 2. Run: pre-commit install
# 3. Run: pre-commit install --hook-type pre-push (for AGENTS.md validation)
# 4. Run: pre-commit run --all-files (to test)
#
# See: https://pre-commit.com/
repos:
# AI-readiness hooks
- repo: https://github.com/openshift-hyperfleet/rh-hooks-ai
rev: v1.0.3 # Updated automatically by release workflow
hooks:
- id: check-rh-precommit
- id: ai-attribution-reminder
# Local repository validation hooks
- repo: local
hooks:
- id: make-lint
name: Run make lint
entry: make lint
language: system
always_run: true
pass_filenames: false
- id: make-update
name: Run make update
entry: make update
language: system
always_run: true
pass_filenames: false