-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
61 lines (60 loc) · 1.75 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
61 lines (60 loc) · 1.75 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
# Copyright 2025 Nutanix. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
stages: [pre-commit]
- id: check-yaml
args: ["-m", "--unsafe"]
stages: [pre-commit]
- id: mixed-line-ending
args: ["-f", "lf"]
exclude: \.bat$
stages: [pre-commit]
- id: no-commit-to-branch
stages: [pre-commit]
- id: check-added-large-files
stages: [pre-commit]
- id: check-case-conflict
stages: [pre-commit]
- id: check-merge-conflict
stages: [pre-commit]
- id: check-executables-have-shebangs
stages: [pre-commit]
- id: check-symlinks
stages: [pre-commit]
- id: end-of-file-fixer
stages: [pre-commit]
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint-system
stages: [pre-commit]
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
args: ["--ignore", "B1,B6", "-c", "T1.line-length=200"]
- id: gitlint-ci
args: ["--ignore", "B1,B6", "-c", "T1.line-length=200"]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shfmt
stages: [pre-commit]
args: ["-s", "-i", "2"]
- id: git-check
args: ["--allow-untracked"]
- id: git-dirty
args: ["--allow-untracked"]
- id: script-must-have-extension
stages: [pre-commit]
exclude: ^\.envrc$
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
stages: [pre-commit]
exclude: ^\.envrc$