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: 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         stages: [commit]
17
18   - repo: https://github.com/jorisroovers/gitlint
19     rev: v0.13.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               jenkins-config/.*
31           )$
32
33   - repo: https://github.com/ambv/black
34     rev: 20.8b1
35     hooks:
36       - id: black
37
38   - repo: https://gitlab.com/pycqa/flake8
39     rev: 3.8.3
40     hooks:
41       - id: flake8
42         args: ["--max-line-length=88"]
43
44   - repo: https://github.com/pycqa/bandit
45     rev: 1.6.2
46     hooks:
47       - id: bandit
48         # Bandit does not need to run on test code
49         exclude: ^tests/
50
51   - repo: https://github.com/pycqa/pydocstyle
52     rev: 5.0.2
53     hooks:
54       - id: pydocstyle
55
56   - repo: https://github.com/adrienverge/yamllint
57     rev: v1.23.0
58     hooks:
59       - id: yamllint
60
61   - repo: https://github.com/btford/write-good
62     rev: v1.0.3
63     hooks:
64       - id: write-good
65         exclude: docs/jenkins.rst