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