-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.pre-commit-config.yaml
102 lines (101 loc) · 2.8 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
91
92
93
94
95
96
97
98
99
100
101
102
# Copyright (C) 2020 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: mixed-line-ending
- id: fix-byte-order-marker
- id: check-yaml
- repo: https://github.com/crate-ci/typos
rev: v1.16.8
hooks:
- id: typos
- repo: local
hooks:
- id: clang-format
name: clang-format
entry: clang-format
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
- id: black
name: black
entry: black
language: system
files: \.py$
- id: repo-inventory
name: repo-inventory
entry: .github/scripts/check-repo-contents-file.sh
language: script
# Always run because other renamed, modified, or deleted files need to
# be reflected in the contents file.
always_run: true
# This forces only docker/repo-inventory.txt to be considered and passed
# in the an arg. Not having at least 'files' defined can lead to
# overwrite of other files.
pass_filenames: false
files: docker/repo-inventory.txt
args: [docker/repo-inventory.txt]
- id: bandit
name: bandit
entry: .github/scripts/run-bandit.sh
language: script
pass_filenames: false
- id: mypy-deployments
name: mypy-deployments
entry: .github/scripts/run-mypy.sh
language: script
pass_filenames: false
args:
- deployments
- id: mypy-kit
name: mypy-kit
entry: .github/scripts/run-mypy.sh
language: script
pass_filenames: false
args:
- -p
- kit
- id: pylint
name: pylint
entry: .github/scripts/run-pylint.sh
language: script
pass_filenames: false
args:
- kit
- deployments