-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
36 lines (36 loc) · 1007 Bytes
/
.pre-commit-config.yaml
File metadata and controls
36 lines (36 loc) · 1007 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
34
35
36
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.0.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
- repo: local
hooks:
- id: fmt
name: fmt
description: Format files with rustfmt.
entry: rustfmt --edition 2018 --
language: system
files: \.rs$
args: []
- id: cargo-check
name: cargo check
description: Check the package for errors.
entry: cargo check --features postgres
language: system
files: \.rs$
pass_filenames: false
- id: cargo-test
name: cargo test
description: Run tests
entry: cargo test --features postgres
language: system
files: \.rs$
pass_filenames: false
- id: clippy
name: clippy
description: Lint rust sources
entry: cargo clippy --features postgres -- -D warnings
language: system
files: \.rs$
pass_filenames: false