-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
60 lines (60 loc) · 1.37 KB
/
.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_install_hook_types: ["pre-push"]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-added-large-files
- id: check-vcs-permalinks
- repo: local
hooks:
- id: markdown-lint
name: "Markdown Lint"
entry: markdownlint
args: ["README.md"]
language: system
types: [markdown]
pass_filenames: false
- id: vale-grammar
name: "Vale Grammar"
entry: vale
args: ["README.md", "--output", "line"]
language: system
types: [markdown]
pass_filenames: false
- id: cargo-check
name: "Cargo Check"
entry: cargo
args: ["check"]
language: system
types: [rust]
pass_filenames: false
- id: cargo-build
name: "Cargo Build"
entry: cargo
args: ["build"]
language: system
types: [rust]
pass_filenames: false
- id: cargo-clippy
name: "Cargo Clippy"
entry: cargo
args: ["clippy", "--", "-D", "warnings"]
language: system
types: [rust]
pass_filenames: false
- id: test
name: "Cargo test"
entry: cargo
args: ["test"]
language: system
types: [rust]
pass_filenames: false
- id: fmt
name: fmt
description: Format files with cargo fmt.
entry: cargo fmt
language: system
types: [rust]
args: ["--"]