forked from pytorch/TensorRT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
39 lines (38 loc) · 1.02 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
exclude: ^.github/actions/assigner/dist
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: trailing-whitespace
- id: check-added-large-files
- id: check-vcs-permalinks
- id: check-merge-conflict
- id: mixed-line-ending
args:
- --fix=lf
- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black
exclude: ^examples/custom_converters/elu_converter/setup.py
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v14.0.6
hooks:
- id: clang-format
types_or: [c++, c, cuda]
- repo: https://github.com/keith/pre-commit-buildifier
rev: 5.1.0
hooks:
- id: buildifier
args:
- --warnings=all
- id: buildifier-lint
- repo: local
hooks:
- id: dont-commit-upstream
name: NVIDIA-INTERNAL check
entry: "!NVIDIA-INTERNAL"
exclude: "^.pre-commit-config.yaml"
language: pygrep
types: [text]