-
Notifications
You must be signed in to change notification settings - Fork 6
/
.pre-commit-config.yaml
63 lines (58 loc) · 1.68 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
default_install_hook_types: [pre-commit, pre-push, commit-msg]
default_stages: [pre-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-toml
- id: check-added-large-files
- id: check-merge-conflict
- id: check-case-conflict
- id: detect-private-key
- repo: https://github.com/lyz-code/yamlfix/
rev: 1.16.0
hooks:
- id: yamlfix
args: [-c, .yamlfix.toml]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.16.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional']
- repo: https://github.com/crate-ci/typos
rev: v1.21.0
hooks:
- id: typos
- repo: local
hooks:
- id: clippy
name: clippy
description: Lint rust sources
entry: make lint-clippy
language: system
types: [rust]
pass_filenames: false
- id: fmt-markdown
name: lint-markdown
description: Lint config files using Prettier
entry: npx prettier --write --no-error-on-unmatched-pattern
language: system
types: [markdown]
- id: fmt-rust
name: fmt-rust
description: Format files with cargo fmt.
entry: make fmt-rust
language: system
types: [rust]
pass_filenames: false
- id: fmt-cargo
name: fmt-cargo
description: Lint Cargo.toml files using cargo-sort
entry: make fmt-cargo
language: system
types: [toml]
pass_filenames: false