-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
33 lines (30 loc) · 930 Bytes
/
.pre-commit-config.yaml
File metadata and controls
33 lines (30 loc) · 930 Bytes
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
repos:
- repo: local
hooks:
- id: cargo-fmt
name: Rust format (cargo fmt)
entry: cargo fmt --all --
language: system
types: [rust]
pass_filenames: false
- id: cargo-clippy
name: Rust lint (cargo clippy)
entry: cargo clippy --workspace --all-targets -- -Dwarnings --no-deps
language: system
types: [rust]
pass_filenames: false
- id: doc-check
name: Rust Docs (cargo doc)
description: Run `cargo doc` to ensure documentation builds without errors.
entry: cargo rustdoc --lib -- -D missing_docs -D rustdoc::broken_intra_doc_links
language: system
pass_filenames: false
types: [rust]
- repo: builtin
hooks:
- id: trailing-whitespace
- id: mixed-line-ending
- id: check-symlinks
- id: detect-private-key
- id: check-toml
- id: check-yaml