-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy path.pre-commit-config.yaml
32 lines (32 loc) · 1015 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
# 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: 38b88246ccc552bffaaf54259d064beeee434539 # frozen: v4.0.1
hooks:
- id: check-case-conflict
- id: check-symlinks
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
exclude: '^(README.md|tests/testdata/expected/.*)$'
- repo: local
hooks:
- id: rustfmt
name: Check formatting
entry: cargo +nightly fmt --
language: system
files: \.rs$
- id: tests
name: Run tests
entry: cargo test --all-targets --all-features
language: system
files: \.rs$
pass_filenames: false
- id: clippy
name: Check clippy lints
entry: cargo clippy --all-targets --all-features -- -D warnings
language: system
files: \.rs$
pass_filenames: false