Merge "Auto Update CSIT Jobs to run for sodium"
[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: trailing-whitespace
8
9   - repo: https://github.com/prettier/prettier
10     rev: 2.0.5
11     hooks:
12       - id: prettier
13
14   - repo: https://github.com/jorisroovers/gitlint
15     rev: v0.13.1
16     hooks:
17       - id: gitlint
18
19   - repo: https://github.com/jumanjihouse/pre-commit-hooks
20     sha: 2.0.2
21     hooks:
22       - id: shellcheck
23         exclude: >
24           (?x)^(
25               jjb/global-jjb/.*|
26               jenkins-config/.*
27           )$
28
29   - repo: https://github.com/ambv/black
30     rev: stable
31     hooks:
32       - id: black
33
34   - repo: https://gitlab.com/pycqa/flake8
35     rev: 3.8.3
36     hooks:
37       - id: flake8
38         args: ["--max-line-length=88"]
39
40   - repo: https://github.com/pycqa/bandit
41     rev: 1.6.2
42     hooks:
43       - id: bandit
44         # Bandit does not need to run on test code
45         exclude: tests/*
46
47   - repo: https://github.com/pycqa/pydocstyle
48     rev: 5.0.2
49     hooks:
50       - id: pydocstyle
51
52   - repo: https://github.com/adrienverge/yamllint
53     rev: v1.23.0
54     hooks:
55       - id: yamllint
56
57   - repo: local
58     hooks:
59       # TODO: Switch to upstream hook when https://github.com/btford/write-good/pull/119 is merged.
60       - id: write-good
61         name: write-good
62         description: Check docs for English prose with write-good
63         entry: write-good
64         language: node
65         files: "\\.(rst|md|markdown|mdown|mkdn)$"
66         additional_dependencies: ["write-good"]
67         exclude: docs/jenkins.rst