Merge "Branch cut for stable/silicon stream"
[releng/builder.git] / .pre-commit-config.yaml
1 ---
2 default_language_version:
3   python: python3
4   node: "14.13.0"
5 repos:
6   - repo: https://github.com/pre-commit/pre-commit-hooks
7     rev: v2.5.0
8     hooks:
9       - id: check-json
10       - id: trailing-whitespace
11
12   - repo: https://github.com/prettier/pre-commit
13     rev: v2.1.2
14     hooks:
15       - id: prettier
16
17   - repo: https://github.com/jorisroovers/gitlint
18     rev: v0.13.1
19     hooks:
20       - id: gitlint
21
22   - repo: https://github.com/jumanjihouse/pre-commit-hooks
23     rev: 2.1.5
24     hooks:
25       - id: shellcheck
26         exclude: >
27           (?x)^(
28               jjb/global-jjb/.*|
29               jenkins-config/.*
30           )$
31
32   - repo: https://github.com/ambv/black
33     rev: stable
34     hooks:
35       - id: black
36
37   - repo: https://gitlab.com/pycqa/flake8
38     rev: 3.8.3
39     hooks:
40       - id: flake8
41         args: ["--max-line-length=88"]
42
43   - repo: https://github.com/pycqa/bandit
44     rev: 1.6.2
45     hooks:
46       - id: bandit
47         # Bandit does not need to run on test code
48         exclude: tests/*
49
50   - repo: https://github.com/pycqa/pydocstyle
51     rev: 5.0.2
52     hooks:
53       - id: pydocstyle
54
55   - repo: https://github.com/adrienverge/yamllint
56     rev: v1.23.0
57     hooks:
58       - id: yamllint
59
60   - repo: https://github.com/btford/write-good
61     rev: v1.0.3
62     hooks:
63       - id: write-good
64         exclude: docs/jenkins.rst