forked from nvidia-riva/cpp-clients
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
30 lines (30 loc) · 1012 Bytes
/
.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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-added-large-files
# - id: end-of-file-fixer
# - id: trailing-whitespace
# - id: check-yaml
# - id: mixed-line-ending
# args: ['--fix=lf']
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v10.0.1
hooks:
- id: clang-format
types_or: [c++, cuda]
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
exclude: ^external/
args: ["--skip-string-normalization", "--line-length=119"]
additional_dependencies: ['click==8.0.4']
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
args: ["--multi-line=3", "--trailing-comma", "--force-grid-wrap=0", "--use-parenthese", "--line-width=119", "--ws", "--skip=external"]