-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
78 lines (76 loc) · 2.24 KB
/
.pre-commit-config.yaml
File metadata and controls
78 lines (76 loc) · 2.24 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# SPDX-FileCopyrightText: 2025 ETH Zurich and University of Bologna
#
# SPDX-License-Identifier: Apache-2.0
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
---
exclude: |
(?x)^(
.*third_party.*
| .*install/.*
| .*toolchain/.*
| .*TEST_.*
| .*TestFiles.*
| .*runtime.*
| .*\.patch
| .*prebuilt/.*
)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
name: Check for added large files
- id: trailing-whitespace
name: Check for trailing whitespace
- repo: local
hooks:
- id: reuse
name: Check SPDX License Headers
entry: scripts/reuse_skip_wrapper.py
additional_dependencies: ["reuse==6.2.0"]
language: python
stages: [pre-commit, pre-merge-commit, pre-push, manual]
types: [text]
exclude_types: [batch, svg, json, markdown]
- repo: https://github.com/google/yapf
rev: v0.43.0
hooks:
- id: yapf
name: Autoformat Python Files
args: ["--in-place", "--parallel"]
stages: [pre-commit, pre-merge-commit, pre-push, manual]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: Autoformat Python Imports
args: ["--quiet"]
stages: [pre-commit, pre-merge-commit, pre-push, manual]
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.0
hooks:
- id: autoflake
name: Remove Unused Python Imports
args:
- "--remove-all-unused-imports"
- "--ignore-init-module-imports"
- "--in-place"
stages: [pre-commit, pre-merge-commit, pre-push, manual]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v15.0.7
hooks:
- id: clang-format
name: Autoformat C/C++ Files
args: ["-i"]
stages: [pre-commit, pre-merge-commit, pre-push, manual]
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.33.0
hooks:
- id: yamllint
name: Lint YAML Files
stages: [pre-commit, pre-merge-commit, pre-push, manual]
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.12.0-2
hooks:
- id: shfmt