Merge "Add pipeline-verify jobs to lint and check agents"
[releng/global-jjb.git] / .pre-commit-config.yaml
1 ---
2 repos:
3   - repo: https://github.com/pre-commit/pre-commit-hooks
4     rev: v3.1.0
5     hooks:
6       - id: trailing-whitespace
7
8   - repo: https://github.com/prettier/pre-commit
9     rev: v2.1.2
10     hooks:
11       - id: prettier
12
13   - repo: https://github.com/jorisroovers/gitlint
14     rev: v0.13.1
15     hooks:
16       - id: gitlint
17
18   - repo: https://github.com/jumanjihouse/pre-commit-hooks
19     rev: 2.1.1
20     hooks:
21       - id: shellcheck
22
23   - repo: https://github.com/btford/write-good
24     rev: v1.0.4
25     hooks:
26       - id: write-good
27         exclude: >
28           (?x)^(
29             docs/jjb/lf-c-cpp-jobs.rst|
30             docs/jjb/lf-ci-jobs.rst|
31             docs/jjb/lf-macros.rst|
32             docs/jjb/lf-python-jobs.rst
33           )$
34
35   - repo: https://github.com/btford/write-good
36     rev: v1.0.4
37     hooks:
38       # Files listed below break the following write-good rules:
39       #   - adverb weakens meaning
40       #   - is wordy or unneeded
41       #
42       # This allows us to place an exception need to pass the check without disabling all checks for
43       # the whole file.
44       # In an ideal world write-good would give us an override for each individual instance of a
45       # violation but until then this gives us a close enough approach.
46       - id: write-good
47         name: "write-good --no-adverb --no-tooWordy"
48         args: ["--no-adverb", "--no-tooWordy"]
49         files: docs/jjb/lf-ci-jobs.rst
50
51   - repo: https://github.com/btford/write-good
52     rev: v1.0.4
53     hooks:
54       # Files listed below break the following write-good rules:
55       #   - is wordy or unneeded
56       #
57       # This allows us to place an exception need to pass the check without disabling all checks for
58       # the whole file.
59       # In an ideal world write-good would give us an override for each individual instance of a
60       # violation but until then this gives us a close enough approach.
61       - id: write-good
62         name: "write-good --no-tooWordy"
63         args: ["--no-tooWordy"]
64         files: >
65           (?x)^(
66             docs/jjb/lf-c-cpp-jobs.rst|
67             docs/jjb/lf-macros.rst|
68             docs/jjb/lf-python-jobs.rst
69           )$