-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
60 lines (49 loc) · 1.74 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2018 The Linux Foundation
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
hooks:
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/jorisroovers/gitlint
rev: acc9d9de6369b76d22cb4167029d2035e8730b98 # frozen: v0.19.1
hooks:
- id: gitlint
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 8b76f04e7e5a9cd259e9d1db7799599355f97cdf # frozen: v0.8.2
hooks:
- id: ruff
files: ^(docs)/.+\.py$
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
files: ^(docs)/.+\.py$
- repo: https://github.com/pycqa/bandit
rev: 8fd258abbac759d62863779f946d6a88e8eabb0f # frozen: 1.8.0
hooks:
- id: bandit
# Bandit does not need to run on test code
exclude: tests/.*
- repo: https://github.com/pycqa/pydocstyle
rev: 07f6707e2c5612960347f7c00125620457f490a7 # frozen: 6.3.0
hooks:
- id: pydocstyle
- repo: https://github.com/btford/write-good
rev: ab66ce10136dfad5146e69e70f82a3efac8842c1 # frozen: v1.0.8
hooks:
- id: write-good
files: "\\.(rst|md|markdown|mdown|mkdn)$"
exclude: docs/infra/gerrit.rst|docs/best-practices.rst
- repo: https://github.com/rhysd/actionlint
rev: 5db9d9cde2f3deb5035dea3e45f0a9fff2f29448 # frozen: v1.7.4
hooks:
- id: actionlint
- repo: https://github.com/fsfe/reuse-tool
rev: 60dfc6b2ad9e1f3eabfbcf3a0dc202ee89dc5a00 # frozen: v5.0.2
hooks:
- id: reuse