-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
41 lines (38 loc) · 1.15 KB
/
.pre-commit-config.yaml
File metadata and controls
41 lines (38 loc) · 1.15 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
#
# Copyright (C) 2022-2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: local
hooks:
- id: clang-format
name: clang-format
entry: clang-format -i
language: python
stages: [pre-commit]
args: ["-style=file"]
types: [c++]
exclude: 'docs/.*|thirdparty/.*|sw_runtime_kernels/.*'
require_serial: false
additional_dependencies: ['clang-format==18.1.8']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-json
exclude: 'docs/.*|.*tests/lit/.*'
- id: trailing-whitespace
exclude: 'docs/.*|thirdparty/.*|sw_runtime_kernels/.*|.*.md'
- id: end-of-file-fixer
exclude: 'docs/.*|thirdparty/.*|sw_runtime_kernels/.*|.*.bin$|.*.cpp|.*.hpp|.*.db|.*.svg|.*.js'
- repo: https://github.com/hhatto/autopep8
rev: v2.3.1
hooks:
- id: autopep8
args:
- --max-line-length
- "119"
- --in-place
- --ignore
- E402
exclude: 'docs/.*|thirdparty/.*|sw_runtime_kernels/.*|.*.bin$'