Skip to content

Commit 2a0152f

Browse files
authored
pre-commit: use local rust steps (#48)
1 parent 9b3e5a4 commit 2a0152f

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.pre-commit-config.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,22 @@ repos:
1919
- batch
2020
- id: trailing-whitespace
2121
args: [ --markdown-linebreak-ext=md ]
22-
- repo: https://github.com/doublify/pre-commit-rust
23-
rev: v1.0
22+
- repo: local
2423
hooks:
25-
- id: fmt
26-
- id: cargo-check
27-
- id: clippy
24+
- id: cargo-fmt
25+
name: cargo fmt
26+
entry: cargo fmt
27+
language: system
28+
types: [rust]
29+
pass_filenames: false
30+
- repo: local
31+
hooks:
32+
- id: cargo-clippy
33+
name: cargo clippy
34+
entry: cargo clippy --all-features --tests -- -D warnings
35+
language: system
36+
types: [rust]
37+
pass_filenames: false
2838
- repo: local
2939
hooks:
3040
- id: isort

0 commit comments

Comments
 (0)