-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
46 lines (45 loc) · 1.19 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
default_stages: [pre-commit]
repos:
# General syntax and repo checks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: check-case-conflict
- id: check-symlinks
- id: check-vcs-permalinks
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
args: [--fix=lf]
- id: trailing-whitespace
- id: detect-private-key
# Detect typos in files
- repo: https://github.com/crate-ci/typos
rev: v1.26.0
hooks:
- id: typos
# Rust hooks
- repo: https://github.com/doublify/pre-commit-rust
rev: "v1.0"
hooks:
- id: fmt
- id: cargo-check
- id: clippy
# Ensure commit message matches the conventional commits template
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.6.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
ci:
autofix_prs: true
autofix_commit_msg: "chore: auto fixes from pre-commit hooks"
autoupdate_commit_msg: "chore(deps): pre-commit autoupdate"
skip:
- typos
- fmt
- cargo-check
- clippy