-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
27 lines (27 loc) · 928 Bytes
/
.pre-commit-config.yaml
File metadata and controls
27 lines (27 loc) · 928 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
repos:
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: clippy
files: ^src/
entry: cargo clippy --manifest-path ./Cargo.toml --fix --allow-staged --allow-dirty
args: ["--"]
- id: clippy
files: ^entity/src/
entry: cargo clippy --manifest-path ./entity/Cargo.toml --fix --allow-staged --allow-dirty
- id: clippy
files: ^migration/src/
entry: cargo clippy --manifest-path ./migration/Cargo.toml --fix --allow-staged --allow-dirty
args: ["--"]
- id: fmt
files: ^src/
entry: cargo fmt --manifest-path ./Cargo.toml
args: ["--"]
- id: fmt
files: ^entity/src/
entry: cargo fmt --manifest-path ./entity/Cargo.toml
args: ["--"]
- id: fmt
files: ^migration/src/
entry: cargo fmt --manifest-path ./migration/Cargo.toml
args: ["--"]