-
Notifications
You must be signed in to change notification settings - Fork 249
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
77 lines (77 loc) · 2.08 KB
/
.pre-commit-config.yaml
File metadata and controls
77 lines (77 loc) · 2.08 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
# pre-commit install --allow-missing-config && pre-commit autoupdate && pre-commit run --all-files --color auto
exclude: |
(?x)^(
old-versions/.*
)
fail_fast: true
default_stages:
- pre-commit
default_language_version:
python: python3.13
default_install_hook_types:
- commit-msg
- pre-commit
ci:
autoupdate_schedule: monthly
repos:
- repo: meta
hooks:
- id: identity
name: "meta | pre-commit hooks"
stages:
- manual
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
name: "git | block large files"
args: [--maxkb=2048]
- id: check-json
name: "general | check JSON files"
- id: check-toml
name: "general | check TOML files"
- id: check-xml
name: "general | check XML files"
- id: check-yaml
name: "general | check YAML files"
- id: end-of-file-fixer
name: "general | fix end of file"
- id: forbid-new-submodules
name: "git | forbid new submodules"
- id: forbid-submodules
name: "git | forbid submodules usage"
- id: mixed-line-ending
name: "general | fix line ending"
args:
- --fix=auto
- id: pretty-format-json
name: "general | prettify JSON files"
args:
- --autofix
- --no-ensure-ascii
- id: trailing-whitespace
name: "general | remove trailing whitespace"
- repo: local
hooks:
- id: pin-github-action
name: "gh-action | lint: pinned sha"
files: ^\.github/workflows/[^/]+\.ya?ml$
entry: "pin-github-action ."
language: node
additional_dependencies:
- pin-github-action@3.4.0
stages:
- manual
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.45.0
hooks:
- id: markdownlint
name: "md | lint: run markdownlint-cli"
args:
- --config
- .config/.markdown-lint.yml
exclude: |
(?x)^(
doc-utilities/scripts/toc.md
)