-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
executable file
·38 lines (38 loc) · 1.04 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
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
exclude: \.output
- id: end-of-file-fixer
exclude: \.(cp?p?$|output)
- id: check-yaml
- id: check-docstring-first
- id: check-added-large-files
- id: debug-statements
- id: requirements-txt-fixer
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
args: ["-S", "-l", "90"]
# - repo: https://github.com/pycqa/isort
# rev: 5.10.1
# hooks:
# - id: isort
- repo: https://github.com/pre-commit/pre-commit
rev: v2.16.0
hooks:
- id: validate_manifest
- repo: https://github.com/chanzhennan/pre-commit-hooks
rev: v1.3.5
hooks:
- id: clang-format
args: ["--style=Google", "-i"]
types_or: [c++, c, c#, cuda, json, objective-c, proto]
- repo: https://github.com/chanzhennan/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
- id: cmake-lint