forked from intel/he-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
56 lines (55 loc) · 1.34 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
# Copyright (C) 2020-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: mixed-line-ending
- id: check-byte-order-marker
- id: check-yaml
- repo: https://github.com/crate-ci/typos
rev: v1.1.6
hooks:
- id: typos
- repo: local
hooks:
- id: clang-format-10
name: clang-format-10
entry: clang-format-10
language: system
files: \.(c|cc|cxx|cpp|h|hpp|hxx|js|proto)$
args:
- -i
- id: shfmt
name: shfmt
entry: shfmt
language: system
files: \.sh$
args:
- -d
- -i
- '2'
- -ci
- -sr
- -bn
- -w
- id: cpplint
name: cpplint
entry: cpplint
language: system
files: \.(c|cc|cxx|cpp|h|hpp|hxx)$
args:
- --recursive
- id: shellcheck
name: shellcheck
entry: shellcheck
language: system
files: \.sh$
args:
- -s
- bash
- -e
- SC1091