forked from plaidml/plaidml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
48 lines (48 loc) · 1.24 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
exclude: >
(?x)^(
base/util/catch.h|
bzl/version.tpl.cc|
bzl/version.tpl.py|
bzl/conda.tpl.py|
ci/pipeline.yml|
plaidbench/plaidbench/networks/keras/imdb_lstm.h5|
tile/targets/cpu/heatmap_skx_xeonplat_8180_1-7GHz_mblocked.csv.gz
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-xml
- id: check-yaml
- repo: local
hooks:
- id: buildifier
name: buildifier
entry: buildifier
language: system
files: (^BUILD|\.BUILD|\.bzl|^WORKSPACE)$
- id: clang-format
name: clang-format
entry: clang-format
language: system
files: \.(c|cc|cxx|cpp|h|hpp|hxx|js|proto)$
args: ["-i"]
- id: cpplint
name: cpplint
entry: cpplint
language: system
files: \.(c|cc|cxx|cpp|h|hpp|hxx)$
args:
- --filter=-legal/copyright,-readability/todo,-build/c++11
- --linelength=120
- id: yapf
name: yapf
entry: yapf
language: system
files: \.py$
args: [-i]