-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
90 lines (89 loc) · 2.73 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#
# SPDX-FileCopyrightText: Copyright 2024-2025 Arm Limited and/or its affiliates <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
#
default_install_hook_types: [ pre-commit, pre-push ]
fail_fast: false
repos:
- repo: https://github.com/fsfe/reuse-tool
rev: v5.0.2
hooks:
- id: reuse-lint-file
stages: [ pre-commit ]
name: "REUSE Compliant Copyright and License"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
args: [ '--maxkb=200' ]
stages: [ pre-commit ]
name: "File size limit not exceeded"
- id: check-yaml
stages: [ pre-commit ]
name: "YAML Syntax"
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 2.7.3
hooks:
- id: editorconfig-checker
alias: ec
stages: [ pre-commit ]
name: "EditorConfig Rules"
exclude: ^LICENSES/
- repo: https://github.com/cmake-lint/cmake-lint
rev: 251239e56ab8b88889fec16a47376c44dfa16a99
hooks:
- id: cmakelint
stages: [ pre-commit ]
name: CMake Linter
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
hooks:
- id: mdformat
stages: [ pre-commit ]
name: Markdown Formatter
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.6
hooks:
- id: clang-format
stages: [ pre-commit ]
name: "C/C++: clang-format Formatter"
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.12.0
hooks:
- id: reorder-python-imports
stages: [ pre-commit ]
name: "Python: Reorder Imports"
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
stages: [ pre-commit ]
name: "Python: Black Formatter"
- repo: https://github.com/keith/pre-commit-buildifier
rev: 5595ecae0b38f9450b7dddf00591c8591a9939bc
hooks:
- id: buildifier
name: "Bazel: Buildifier (fix)"
stages: [ pre-commit ]
- id: buildifier-lint
name: "Bazel: Buildifier (lint)"
stages: [ pre-commit ]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
stages: [ pre-commit ]
args: [ "--severity=warning" ]
- repo: local
hooks:
- id: signed-off-checker
alias: signed-off-checker
name: "Signed-off Checker (DCO)"
entry: python tools/pre-commit/signedoff_checker.py
always_run: true
language: python
language_version: python3
description: Ensures that latest commit has been signed-off with `--signoff`.
pass_filenames: false
stages: [ pre-commit, pre-push ]