-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
49 lines (46 loc) · 1.39 KB
/
.pre-commit-config.yaml
File metadata and controls
49 lines (46 loc) · 1.39 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
44
45
46
47
48
# Install: uv add pre-commit && pre-commit install
repos:
# Validate JSON files against schema using check-jsonschema
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.36.0
hooks:
- id: check-jsonschema
name: Validate maintainer JSON files
stages: [pre-commit]
files: ^content/maintainers/.*\.json$
args: ["--schemafile", "maintainer.schema.json"]
# cspell
# - repo: https://github.com/streetsidesoftware/cspell-cli
# rev: v9.4.0
# hooks:
# - id: cspell
# name: Spell check markdown files
# types: [text]
# args:
# - --config
# - cspell.json
# - --no-must-find-files
# - id: cspell
# name: check commit message spelling
# args:
# - --config
# - cspell.json
# - --no-must-find-files
# - --no-progress
# - --no-summary
# - --files
# - .git/COMMIT_EDITMSG
# stages: [commit-msg]
# always_run: true
# # Custom validator using parser
# - repo: local
# hooks:
# - id: validate-maintainer-json
# name: Validate maintainer JSON with parser
# entry: uv run python3 parse-maintainer.py --validate
# language: system
# stages: [pre-commit]
# files: ^content/maintainers/.*\.json$
# pass_filenames: true
# env:
# CI: "false"