-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
43 lines (42 loc) · 1.83 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
43 lines (42 loc) · 1.83 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
# Automated repo hygiene — single source of truth.
# CI (.github/workflows/hygiene.yml) runs `pre-commit run --all-files`, so these
# are enforced on every push whether or not you ran `pre-commit install` locally.
# Optional local install: pipx install pre-commit && pre-commit install
minimum_pre_commit_version: "3.5.0"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: mixed-line-ending
args: [--fix=lf]
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: check-yaml
- id: check-json
- id: check-toml
- id: check-merge-conflict
- id: check-case-conflict
- id: check-added-large-files
args: [--maxkb=10240]
# Local: companion/version drift linter (self-audit 2026-06-07/FF-004) — automates the
# MANIFEST.md drift check. Whole-repo consistency check, so it always runs regardless of
# which files changed. FF ids are per-cycle, hence the date qualifiers (MANIFEST.md).
- repo: local
hooks:
- id: drift-check
name: companion/version drift check (2026-06-07/FF-004)
entry: python3 scripts/check_drift.py
language: system
pass_filenames: false
always_run: true
# The drift linter's own negative tests: the authority-aware §-ref resolver
# (self-audit 2026-06-08/FF-001 — guards the 2026-06-08/F-001 wrong-authority
# regression) plus the 2026-06-10 gate-hardening rules (bare-cycle-id, AGENTS.md
# literal currency, content-hash binding; ADR 0003 follow-through).
- id: drift-check-selftest
name: drift linter self-test (2026-06-08/FF-001 + 2026-06-10 gate rules)
entry: python3 scripts/check_drift.py --self-test
language: system
pass_filenames: false
always_run: true