-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
29 lines (27 loc) · 931 Bytes
/
.pre-commit-config.yaml
File metadata and controls
29 lines (27 loc) · 931 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
# Pre-commit hooks. Install: pip install pre-commit && pre-commit install
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
args: ['--maxkb=1000']
# Upload LFS objects (pre-commit replaces git-lfs's own pre-push hook)
- repo: local
hooks:
- id: git-lfs-push
name: git lfs push
entry: bash -c 'git lfs push origin HEAD --all'
language: system
stages: [pre-push]
pass_filenames: false
always_run: true
# Validate demo recordings (A/V drift, narration lint) before push
- repo: local
hooks:
- id: docgen-validate
name: docgen validate (demo A/V + narration lint)
entry: bash -c 'cd docs/demos && docgen --config docgen.yaml validate --pre-push'
language: system
stages: [pre-push]
pass_filenames: false
files: ^docs/demos/