-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
33 lines (33 loc) · 1018 Bytes
/
.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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
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-added-large-files
- id: check-merge-conflict
- id: detect-private-key
- id: check-toml
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: cargo-check
- id: fmt
- repo: local
hooks:
- id: system
name: cargo clippy
description: Run the Clippy linter on the package.
entry: cargo clippy --all-features --tests
language: system
files: \.rs$
pass_filenames: false
# - repo: local
# hooks:
# - id: cargo-test
# name: [SLOW] Run cargo tests
# entry: cargo test --all-features
# pass_filenames: false
# language: system