forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
28 lines (28 loc) · 884 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
28 lines (28 loc) · 884 Bytes
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
# 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
- 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
- //