-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.pre-commit-config.yaml
86 lines (78 loc) · 2.95 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
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
78
79
80
81
82
83
84
85
86
---
# SPDX-FileCopyrightText: 2017 The Linux Foundation
# SPDX-License-Identifier: EPL-1.0
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
hooks:
- id: trailing-whitespace
- id: no-commit-to-branch
args:
- --branch=master
- --branch=main
- repo: https://github.com/pre-commit/mirrors-prettier
rev: f12edd9c7be1c20cfa42420fd0e6df71e42b51ea # frozen: v4.0.0-alpha.8
hooks:
- id: prettier
stages: [commit]
- repo: https://github.com/jorisroovers/gitlint
rev: acc9d9de6369b76d22cb4167029d2035e8730b98 # frozen: v0.19.1
hooks:
- id: gitlint
- repo: https://github.com/adrienverge/yamllint.git
rev: 81e9f98ffd059efe8aa9c1b1a42e5cce61b640c6 # frozen: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 38980559e3a605691d6579f96222c30778e5a69e # frozen: 3.0.0
hooks:
- id: shellcheck
- repo: https://github.com/btford/write-good
rev: ab66ce10136dfad5146e69e70f82a3efac8842c1 # frozen: v1.0.8
hooks:
- id: write-good
exclude: >
(?x)^(
docs/jjb/lf-c-cpp-jobs.rst|
docs/jjb/lf-ci-jobs.rst|
docs/jjb/lf-macros.rst|
docs/jjb/lf-python-jobs.rst
)$
- repo: https://github.com/btford/write-good
rev: ab66ce10136dfad5146e69e70f82a3efac8842c1 # frozen: v1.0.8
hooks:
# Files listed below break the following write-good rules:
# - adverb weakens meaning
# - is wordy or unneeded
#
# This allows us to place an exception needed to pass the check without
# disabling all checks for the whole file. In an ideal world write-good
# would give us an override for each individual instance of a violation
# but until then this gives us a close enough approach.
- id: write-good
name: "write-good --no-adverb --no-tooWordy"
args: ["--no-adverb", "--no-tooWordy"]
files: docs/jjb/lf-ci-jobs.rst
- repo: https://github.com/btford/write-good
rev: ab66ce10136dfad5146e69e70f82a3efac8842c1 # frozen: v1.0.8
hooks:
# Files listed below break the following write-good rules:
# - is wordy or unneeded
#
# This allows us to place an exception needed to pass the check without
# disabling all checks for the whole file. In an ideal world write-good
# would give us an override for each individual instance of a violation
# but until then this gives us a close enough approach.
- id: write-good
name: "write-good --no-tooWordy"
args: ["--no-tooWordy"]
files: >
(?x)^(
docs/jjb/lf-c-cpp-jobs.rst|
docs/jjb/lf-macros.rst|
docs/jjb/lf-python-jobs.rst
)$
- repo: https://github.com/fsfe/reuse-tool
rev: 60dfc6b2ad9e1f3eabfbcf3a0dc202ee89dc5a00 # frozen: v5.0.2
hooks:
- id: reuse