forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
29 lines (29 loc) · 1006 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
# 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: trailing-whitespace
files: \.(rs|move)$
- id: end-of-file-fixer
files: \.(rs|move)$
- id: check-added-large-files
args:
- --maxkb=2000
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
# - id: fmt // Not currently supported for the nightly build, e.g., https://github.com/doublify/pre-commit-rust/issues/15
- id: cargo-check
# Once this issue is resolved, we can add the full license check: https://github.com/Lucas-C/pre-commit-hooks/issues/68
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.3.0
hooks:
- id: insert-license
files: \.rs$
args:
- --license-filepath
- devtools/assets/license_header.txt
- --comment-style
- //