-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
41 lines (37 loc) · 1.26 KB
/
.pre-commit-config.yaml
File metadata and controls
41 lines (37 loc) · 1.26 KB
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
41
repos:
- repo: local
hooks:
- id: cargo-check
name: cargo check
entry: cargo check --all-targets
language: system
pass_filenames: false
types_or: [rust, toml]
files: \.(rs|toml)$|Cargo\.lock$|rust-toolchain\.toml$
- id: cargo-fmt
name: cargo fmt
entry: cargo +nightly fmt --all -- --check
language: system
pass_filenames: false
types_or: [rust, toml]
files: \.(rs|toml)$|Cargo\.lock$|rust-toolchain\.toml$
- id: cargo-clippy
name: cargo clippy
entry: cargo clippy --all-targets --no-deps -- -D warnings
language: system
pass_filenames: false
types_or: [rust, toml]
files: \.(rs|toml)$|Cargo\.lock$|rust-toolchain\.toml$
- id: cargo-doc
name: cargo doc
entry: env RUSTDOCFLAGS="-D warnings" cargo +nightly doc --no-deps --document-private-items
language: system
pass_filenames: false
types_or: [rust, toml]
files: \.(rs|toml)$|Cargo\.lock$|rust-toolchain\.toml$
- id: conventional-commit
name: conventional commit message
entry: scripts/check-conventional-commit.sh
language: script
stages: [commit-msg]
always_run: true