Chore: Update pre-commit config with latest versions
[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: v3.4.0
8     hooks:
9       - id: check-json
10       - id: trailing-whitespace
11
12   - repo: https://github.com/pre-commit/mirrors-prettier
13     rev: v2.2.1
14     hooks:
15       - id: prettier
16         stages: [commit]
17
18   - repo: https://github.com/jorisroovers/gitlint
19     rev: v0.15.1
20     hooks:
21       - id: gitlint
22
23   - repo: https://github.com/jumanjihouse/pre-commit-hooks
24     rev: 2.1.5
25     hooks:
26       - id: shellcheck
27         exclude: >
28           (?x)^(
29               jjb/global-jjb/.*|
30               packer/common-packer/.*|
31               jenkins-config/.*
32           )$
33
34   - repo: https://github.com/ambv/black
35     rev: 21.6b0
36     hooks:
37       - id: black
38
39   - repo: https://gitlab.com/pycqa/flake8
40     rev: 3.9.2
41     hooks:
42       - id: flake8
43         args: ["--max-line-length=88"]
44
45   - repo: https://github.com/pycqa/bandit
46     rev: 1.7.0
47     hooks:
48       - id: bandit
49         # Bandit does not need to run on test code
50         exclude: tests/*
51
52   - repo: https://github.com/pycqa/pydocstyle
53     rev: 6.1.1
54     hooks:
55       - id: pydocstyle
56
57   - repo: https://github.com/adrienverge/yamllint
58     rev: v1.26.1
59     hooks:
60       - id: yamllint
61
62   - repo: https://github.com/btford/write-good
63     rev: v1.0.4
64     hooks:
65       - id: write-good
66         exclude: docs/jenkins.rst