-
Notifications
You must be signed in to change notification settings - Fork 10
/
.pre-commit-config.yaml
86 lines (78 loc) · 2.56 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: v4.5.0
hooks:
- id: trailing-whitespace
- id: no-commit-to-branch
args:
- --branch=master
- --branch=main
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
stages: [commit]
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck
- repo: https://github.com/btford/write-good
rev: 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: 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: 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: bafd6d7683dec1189d7a477489f6b8770bffc0dd # frozen: v3.0.2
hooks:
- id: reuse