Migrate write-good hook to pre-commit
[releng/builder.git] / .pre-commit-config.yaml
1 ---
2 repos:
3   - repo: https://github.com/pre-commit/pre-commit-hooks
4     rev: v2.5.0
5     hooks:
6       - id: check-json
7       - id: flake8
8         args: ['--max-line-length=88']
9         exclude: docs/*
10       - id: trailing-whitespace
11
12   - repo: https://github.com/jorisroovers/gitlint
13     rev: v0.13.1
14     hooks:
15       - id: gitlint
16
17   - repo: https://github.com/jumanjihouse/pre-commit-hooks
18     sha: 2.0.2
19     hooks:
20       - id: shellcheck
21         exclude: >
22             (?x)^(
23                 jjb/global-jjb/.*|
24                 jenkins-config/.*
25             )$
26
27   - repo: https://github.com/adrienverge/yamllint
28     rev: v1.23.0
29     hooks:
30       - id: yamllint
31
32   - repo: local
33     hooks:
34       # TODO: Switch to upstream hook when https://github.com/btford/write-good/pull/119 is merged.
35       - id: write-good
36         name: write-good
37         description: Check docs for English prose with write-good
38         entry: write-good
39         language: node
40         files: "\\.(rst|md|markdown|mdown|mkdn)$"
41         additional_dependencies: ["write-good"]
42         exclude: docs/jenkins.rst