-
Notifications
You must be signed in to change notification settings - Fork 57
/
.pre-commit-config.yaml
42 lines (42 loc) · 1.36 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
# 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: v2.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/doublify/pre-commit-clang-format
rev: master
hooks:
- id: clang-format
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|mm|proto|vert|cu)$
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: '' # pick a git hash / tag to point to
hooks:
- id: flake8
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: "v1.1.7"
hooks:
- id: forbid-crlf
- id: remove-crlf
- id: forbid-tabs
- id: remove-tabs
args: [ --whitespaces-count, "2" ] # defaults to: 4
- id: insert-license
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|mm|proto|vert|cu)$
args:
- --license-filepath
- LICENSE # defaults to: LICENSE.txt
- --comment-style
- // # defaults to: #
- id: insert-license
files: \.(py)$
args:
- --license-filepath
- LICENSE # defaults to: LICENSE.txt