-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (40 loc) · 1.12 KB
/
.pre-commit-config.yaml
File metadata and controls
42 lines (40 loc) · 1.12 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
# Vale documentation linter (informational only - won't block commits)
# Run manually: pre-commit run vale --all-files
- repo: https://github.com/errata-ai/vale
rev: v3.0.7
hooks:
- id: vale
name: Vale Documentation Linter (manual)
files: \.(md|mdx)$
exclude: |
(?x)^(
node_modules/|
build/|
dist/|
.git/
)
# Only run when explicitly called (won't block commits)
stages: [manual]
# Remind contributors which doc sections are included/excluded in deploy previews
- repo: local
hooks:
- id: check-netlify-excludes
name: Netlify deploy preview scope reminder
language: script
entry: .github/scripts/check-netlify-excludes.sh
pass_filenames: false
verbose: true
always_run: true
# Standard pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args:
- --allow-multiple-documents
# - id: check-added-large-files