-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
80 lines (70 loc) · 2.15 KB
/
.pre-commit-config.yaml
File metadata and controls
80 lines (70 loc) · 2.15 KB
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
73
74
75
76
77
78
79
80
# SPDX-FileCopyrightText: 2025 Alex Turbov <i.zaufi@gmail.com>
# SPDX-License-Identifier: CC0-1.0
#
# Read the docs here: https://pre-commit.com
#
# Install hooks to your Git repo clone:
# $ pre-commit install
#
# List of available hooks: https://pre-commit.com/hooks.html
#
default_stages: [pre-commit]
default_install_hook_types: &all [commit-msg, pre-commit]
fail_fast: false
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-case-conflict
- id: check-executables-have-shebangs
always_run: true
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: git-check
pass_filenames: false
# NOTE Read the configuration docs here: http://jorisroovers.github.io/gitlint
# NOTE Read the "Conventional Commits" Specification here:
# https://www.conventionalcommits.org/en/v1.0.0/#summary
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
name: Commit message check
stages: [commit-msg]
# NOTE For config options check this: https://editorconfig-checker.github.io
- repo: https://github.com/editorconfig-checker/editorconfig-checker
rev: v3.4.0
hooks:
- id: editorconfig-checker
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
stages: *all
# NOTE See BUG https://github.com/crate-ci/typos/issues/390
- repo: https://github.com/adhtruong/mirrors-typos
rev: v1.35.4
hooks:
- id: typos
# NOTE Override hook provided args to prevent automatic
# fixing of found typos. Let the dev decide what to fix!
args: [--force-exclude]
stages: *all
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.45.0
hooks:
- id: markdownlint
- repo: https://github.com/fsfe/reuse-tool
rev: v5.0.2
hooks:
- id: reuse