-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
35 lines (34 loc) · 1 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-toml
- id: check-yaml
- id: pretty-format-json
args: ["--indent=4", "--autofix", "--no-sort-keys"]
- id: check-added-large-files
- repo: local
hooks:
- id: format
name: format
description: Format files with cargo make fmt.
entry: cargo make format
language: system
types: [rust]
pass_filenames: false
- id: lint
name: lint
description: Lint files with cargo make lint.
entry: cargo make lint
language: system
types: [rust]
pass_filenames: false
- id: check
name: check
description: Check files with Cargo Check
entry: cargo check
language: system
types: [rust]
pass_filenames: false