generated from IRNAS/irnas-projects-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
91 lines (90 loc) · 2.69 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
stages: [pre-commit]
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
stages: [pre-commit]
- id: check-yaml
stages: [pre-commit]
- id: check-merge-conflict
stages: [pre-commit]
- id: check-executables-have-shebangs
stages: [pre-commit]
- id: check-shebang-scripts-are-executable
stages: [pre-commit]
- id: mixed-line-ending
stages: [pre-commit]
- id: detect-private-key
stages: [pre-commit]
- id: check-added-large-files
stages: [pre-commit]
# clang-format uses .clang-format to apply formatting
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.2
hooks:
- id: clang-format
stages: [pre-commit]
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
- id: cmake-lint
stages: [pre-commit]
# typos uses typos.toml to find and fix typos
- repo: https://github.com/crate-ci/typos
rev: v1.19.0
hooks:
- id: typos
stages: [pre-commit]
# committed uses committed.toml to validate commit messages
- repo: https://github.com/crate-ci/committed
rev: v1.0.20
hooks:
- id: committed
stages: [commit-msg]
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.28.0
hooks:
- id: check-github-workflows
stages: [pre-commit]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
stages: [pre-commit]
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.8.0-1
hooks:
- id: shfmt
stages: [pre-commit]
args: [--indent=4, --simplify, --write]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.4
hooks:
- id: ruff
args: [--fix]
stages: [pre-commit]
- id: ruff-format
stages: [pre-commit]
# prettier uses .prettierrc to format files
- repo: http://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
exclude: CHANGELOG.md
types_or: [markdown]
stages: [pre-commit]
# markdownlint-cli uses .markdownlint.yaml to lint markdown files
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
hooks:
- id: markdownlint
exclude: CHANGELOG.md
args: [--fix]
stages: [pre-commit]
default_install_hook_types: [pre-commit, commit-msg]