-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
60 lines (49 loc) · 1.74 KB
/
.pre-commit-config.yaml
File metadata and controls
60 lines (49 loc) · 1.74 KB
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: 41d2daf392fbf43341a77f24a9c6481a4b66af98 # frozen: v0.9.10
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: 8ff25e07e487f143571cc305e56dd0253c60bc7b # frozen: 1.8.3
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: 03d0035246f3e81f36aed592ffb4bebf33a03106 # frozen: v1.7.7
hooks:
- id: actionlint
- repo: https://github.com/fsfe/reuse-tool
rev: 60dfc6b2ad9e1f3eabfbcf3a0dc202ee89dc5a00 # frozen: v5.0.2
hooks:
- id: reuse