forked from rivosinc/salus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
44 lines (42 loc) · 1.42 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
repos:
# pull mirror from: https://github.com/pre-commit/pre-commit-hooks
- repo: https://gitlab.ba.rivosinc.com/pub/it/pre-commit-hooks.git
rev: v4.1.0
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- id: detect-private-key
- id: forbid-new-submodules
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
# FIXME(kbroch): Once we figure out the licensing
# pull mirror from: https://github.com/Lucas-C/pre-commit-hooks
# - repo: https://gitlab.ba.rivosinc.com/pub/it/lucas-c-pre-commit-hooks.git
# rev: 6a776792f4e02734ca75aaaac20311b431b3b8c3
# hooks:
# - id: insert-license
# files: \.(core|py)$
# args:
# - --license-filepath
# - LICENSE_HDR.txt
# - id: insert-license
# files: \.(c|h|cc|cpp|S|svh|sv|svp)$
# args:
# - --license-filepath
# - LICENSE_HDR.txt
# - --comment-style
# - //
# FIXME(kbroch): Once Cargo.toml defined
# - repo: https://gitlab.ba.rivosinc.com/pub/it/rivos-pre-commit-hooks
# rev: c85480efd69f56e17e29568d64d2a461cc3b5e9f
# hooks:
# - id: cargo-fmt
# - id: cargo-check