-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
72 lines (71 loc) · 1.79 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# 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: fixtures
- id: mixed-line-ending
- id: check-merge-conflict
- id: check-added-large-files
# - id: no-commit-to-branch
# args: [ --branch, main ]
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
- 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
stages:
- pre-commit
- pre-push
args: [--all-targets, "--", "-D", "warnings"]
- repo: local
hooks:
- id: cargo-deny
name: check Cargo dependencies
description: check Cargo dependencies
entry: cargo-deny
language: system
types: [file, toml]
files: Cargo\.(toml|lock)
pass_filenames: false
args: ["--all-features", "check"]
- id: test
name: test
description: Run tests with cargo test
entry: cargo test
language: system
types: [file]
pass_filenames: false
stages: ["push"]
- repo: https://github.com/crate-ci/typos
rev: v1.22.0
hooks:
- id: typos