-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
40 lines (40 loc) · 1.1 KB
/
.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
37
38
39
40
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_language_version:
rust: stable
repos:
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
args: ["-x"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
- id: cargo-check
- id: clippy
args: ["--all-features", "--", "-D", "warnings", "-A", "unknown-lints"]
- repo: local
hooks:
- id: cargo-machete
name: cargo-machete
entry: cargo machete
args: ["--skip-target-dir"]
pass_filenames: false
language: rust
additional_dependencies:
- "cli:cargo-machete:0.7.0"
- id: prevent-dbg
name: prevent dbg!(..) in rust code
language: pygrep
entry: dbg!
types:
- "rust"