-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
36 lines (33 loc) · 1.04 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
exclude: ^(.idea|.vscode)/
fail_fast: false
#default_stages: [push]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
# https://github.com/pre-commit/pre-commit-hooks
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: local
hooks:
- id: rust-fmt
name: cargo fmt format
description: Run cargo fmt on files included in the commit. rustfmt should be installed before-hand.
entry: cargo fmt
pass_filenames: false
types: [file, rust]
language: system
- id: rust-clippy
name: cargo clippy lint
description: Run cargo clippy on files included in the commit. clippy should be installed before-hand.
entry: cargo clippy -- -Dwarnings
pass_filenames: false
types: [file, rust]
language: system