Skip to content

Commit 69212b2

Browse files
haowqsjiangliu
authored andcommitted
.pre-commit-config.yaml: Add .pre-commit-config.yaml
Signed-off-by: Jiewen Yao <[email protected]> Signed-off-by: haowei <[email protected]>
1 parent e455467 commit 69212b2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.pre-commit-config.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
repos:
2+
- repo: https://github.com/doublify/pre-commit-rust.git
3+
rev: v1.0
4+
hooks:
5+
- id: fmt
6+
- id: cargo-check
7+
- id: clippy
8+
args: ["--", "-A", "clippy::redundant_field_names", "-D", "warnings"]
9+
- repo: https://github.com/pre-commit/pre-commit-hooks.git
10+
rev: v4.0.1
11+
hooks:
12+
- id: mixed-line-ending
13+
args: [--fix=lf]
14+
- id: check-toml
15+
- id: trailing-whitespace
16+
- id: check-added-large-files
17+
args: ['--maxkb=1024']
18+
- id: end-of-file-fixer

0 commit comments

Comments
 (0)