Elffuss BraidHub

kikocis/kleidiai public

main · 3.5 KiBRawPermalink
1#
2# SPDX-FileCopyrightText: Copyright 2024-2026 Arm Limited and/or its affiliates <open-source-office@arm.com>
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6
7default_install_hook_types: [ pre-commit, pre-push ]
8fail_fast: false
9repos:
10 - repo: https://github.com/fsfe/reuse-tool
11 rev: v5.0.2
12 hooks:
13 - id: reuse-lint-file
14 stages: [ pre-commit ]
15 name: "REUSE Compliant Copyright and License"
16 args: [ "--no-multiprocessing", "lint-file" ]
17 - repo: https://github.com/pre-commit/pre-commit-hooks
18 rev: v4.5.0
19 hooks:
20 - id: check-added-large-files
21 args: [ '--maxkb=200', '--enforce-all' ]
22 exclude: '(third_party/.*\.zip$|^experimental/ops/)'
23 stages: [ pre-commit ]
24 name: "File size limit not exceeded"
25 - id: check-added-large-files
26 stages: [ pre-commit ]
27 name: File size limit not exceeded (experimental/ops/, 300kb)
28 args: [ '--maxkb=300', '--enforce-all' ]
29 files: ^experimental/ops/
30 - id: check-yaml
31 stages: [ pre-commit ]
32 name: "YAML Syntax"
33 exclude: ^\.clang-format$
34 - id: trailing-whitespace
35 stages: [ pre-commit ]
36 exclude: ^LICENSES/
37
38 - repo: https://github.com/editorconfig-checker/editorconfig-checker.python
39 rev: 2.7.3
40 hooks:
41 - id: editorconfig-checker
42 alias: ec
43 stages: [ pre-commit ]
44 name: "EditorConfig Rules"
45 exclude: ^LICENSES/
46 - repo: https://github.com/cmake-lint/cmake-lint
47 rev: 251239e56ab8b88889fec16a47376c44dfa16a99
48 hooks:
49 - id: cmakelint
50 stages: [ pre-commit ]
51 name: CMake Linter
52 exclude: ^experimental/ops/
53 - id: cmakelint
54 stages: [ pre-commit ]
55 name: CMake Linter (experimental/ops/, no indent)
56 files: ^experimental/ops/
57 args: [--filter=-whitespace/indent]
58 - repo: https://github.com/executablebooks/mdformat
59 rev: 0.7.17
60 hooks:
61 - id: mdformat
62 stages: [ pre-commit ]
63 name: Markdown Formatter
64 - repo: https://github.com/pre-commit/mirrors-clang-format
65 rev: v17.0.6
66 hooks:
67 - id: clang-format
68 stages: [ pre-commit ]
69 name: "C/C++: clang-format Formatter"
70 exclude: '^experimental/ops/'
71 - repo: https://github.com/asottile/reorder-python-imports
72 rev: v3.12.0
73 hooks:
74 - id: reorder-python-imports
75 stages: [ pre-commit ]
76 name: "Python: Reorder Imports"
77 exclude: '^experimental/ops/'
78 - repo: https://github.com/psf/black
79 rev: 24.2.0
80 hooks:
81 - id: black
82 stages: [ pre-commit ]
83 name: "Python: Black Formatter"
84 - repo: https://github.com/keith/pre-commit-buildifier
85 rev: 5595ecae0b38f9450b7dddf00591c8591a9939bc
86 hooks:
87 - id: buildifier
88 name: "Bazel: Buildifier (fix)"
89 stages: [ pre-commit ]
90 - id: buildifier-lint
91 name: "Bazel: Buildifier (lint)"
92 stages: [ pre-commit ]
93 - repo: https://github.com/shellcheck-py/shellcheck-py
94 rev: v0.10.0.1
95 hooks:
96 - id: shellcheck
97 stages: [ pre-commit ]
98 args: [ "--severity=warning" ]
99 - repo: local
100 hooks:
101 - id: signed-off-checker
102 alias: signed-off-checker
103 name: "Signed-off Checker (DCO)"
104 entry: python tools/pre-commit/signedoff_checker.py
105 always_run: true
106 language: python
107 language_version: python3
108 description: Ensures that latest commit has been signed-off with `--signoff`.
109 pass_filenames: false
110 stages: [ pre-commit, pre-push ]