-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
53 lines (53 loc) · 1.27 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_install_hook_types:
- pre-commit
- commit-msg
- pre-push
default_stages:
- pre-commit
- pre-push
- manual
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-symlinks
- id: destroyed-symlinks
- id: check-yaml
- id: check-json
- id: check-toml
- id: end-of-file-fixer
exclude: (.pub$|link.ellis.jade.fendapp.releases.xml$)
- id: check-vcs-permalinks
- id: check-merge-conflict
- id: check-added-large-files
- repo: https://github.com/FeryET/pre-commit-rust
rev: v1.1.0
hooks:
- id: fmt
stages:
- pre-commit
- pre-push
- id: cargo-check
stages:
- pre-commit
- pre-push
- id: clippy
args: [--all-targets, --all-features, "--", "-D", "warnings"]
stages:
- pre-commit
- pre-push
- id: build
stages:
- pre-commit
- pre-push
- id: test
stages:
- pre-push
- repo: https://github.com/crate-ci/typos
rev: v1.22.0
hooks:
- id: typos