-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
36 lines (36 loc) · 987 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
30
31
32
33
34
35
36
---
repos:
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
language: system
entry: cargo fmt --
types: [rust]
- id: cargo-check
name: cargo check
language: system
entry: cargo check --tests --workspace --quiet
types: [rust]
pass_filenames: false
- id: cargo-clippy
name: cargo clippy
language: system
entry: cargo clippy --tests --workspace --all-features -- -D warnings -D clippy::unwrap_used
-D clippy::expect_used -D clippy::panic
types: [rust]
pass_filenames: false
- id: shellcheck
name: shellcheck
language: system
entry: shellcheck --external-sources
types: [shell]
- id: shfmt
name: shfmt
language: system
entry: shfmt --indent 4 --diff --write
types: [shell]
- repo: https://github.com/lyz-code/yamlfix
rev: 1.1.1
hooks:
- id: yamlfix