-
Notifications
You must be signed in to change notification settings - Fork 26
/
.pre-commit-config.yaml
51 lines (44 loc) · 1.72 KB
/
.pre-commit-config.yaml
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
---
# yamllint disable rule:line-length
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# Install in your local dev environment
# > pip install --upgrade --user pre-commit
# Enable the hooks for this repo
# > pre-commit install
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.6.0"
hooks:
- id: check-added-large-files # Prevents giant files from being committed
- id: check-json # Check that JSON files are valid
- id: check-merge-conflict # Check for files that contain merge conflict strings
- id: check-symlinks # Ensure symlinks have a valid target
- id: check-toml # Ensure toml files are valid
- id: check-xml # Check that XML files are valid
- id: end-of-file-fixer # Ensures that a file is either empty, or ends with one newline
- id: fix-byte-order-marker # Forbid utf-8 byte order marker
- id: trailing-whitespace # Trims trailing whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/adrienverge/yamllint
rev: "v1.35.1"
hooks:
- id: yamllint
args: ["--strict", "-c", ".ci-scripts/yamlconfig.yaml"]
- repo: https://github.com/markdownlint/markdownlint
rev: "v0.13.0"
hooks:
- id: markdownlint
args: ["--style", ".ci-scripts/mdl-style.rb"]
exclude: |
(?x)^(
docs/404\.md
)$
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: "3.0.0"
hooks:
- id: shellcheck
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: "38.70.3"
hooks:
- id: renovate-config-validator