-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.pre-commit-config.yaml
37 lines (37 loc) · 947 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
37
fail_fast: true
default_install_hook_types:
- pre-commit
- commit-msg
- pre-push
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.28.0
hooks:
- id: commitizen
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.41.0
hooks:
- id: markdownlint
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: cargo +nightly fmt -- --check
language: system
types:
- rust
- id: clippy
name: clippy
entry: cargo clippy --workspace --all-targets --all-features -- --deny warnings
language: system
pass_filenames: false
types:
- rust
- id: cargo-test
name: cargo test
entry: cargo test --workspace --all-features
language: system
pass_filenames: false
types_or:
- rust
- markdown # For our README.md doc tests