forked from sustainable-computing-io/kepler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
97 lines (86 loc) · 2.66 KB
/
.pre-commit-config.yaml
File metadata and controls
97 lines (86 loc) · 2.66 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
default_install_hook_types:
- pre-commit
- commit-msg
repos:
# NOTE: This hook formats the tables in markdown files ensuring consistent formatting
- repo: local
hooks:
- id: markdown-table-format
name: markdown-table-format
language: node
additional_dependencies:
- markdown-table-formatter
pass_filenames: false
entry: bash -c "markdown-table-formatter"
# NOTE: This hook lints commit messages within a specified range, ideal for validating all commits in a PR.
# Environment variables $FROM (start of range) and $TO (end of range) are set in PR Checks workflow.
- repo: local
hooks:
- id: pr-commit-lint
name: pr-commit-lint
stages: [manual]
language: node
additional_dependencies:
- "@commitlint/cli"
- "@commitlint/config-conventional"
pass_filenames: false
entry: bash -c "commitlint --from $FROM --to $TO --verbose"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-merge-conflict
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.37.0
hooks:
- id: yamllint
exclude: ^manifests/helm/.*/templates/.*\.yaml$
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.44.0
hooks:
- id: markdownlint
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
args: [--ignore-words=.codespellignore]
exclude: go\.(sum|mod)$
- repo: https://github.com/golangci/golangci-lint
rev: v2.1.6
hooks:
- id: golangci-lint
args: [--timeout=5m]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.22.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional'] # yamllint disable-line rule:quoted-strings
- repo: https://github.com/fsfe/reuse-tool
rev: v5.0.2
hooks:
- id: reuse-lint-file
types: [file]
files: \.go$
- repo: https://github.com/pecigonzalo/pre-commit-shfmt
rev: v2.2.0
hooks:
- id: shell-fmt-go
types: [file]
files: \.sh$
args:
- -w
- -l
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
args: [-x]
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.30
hooks:
- id: helmlint
name: helm-lint
files: ^manifests/helm/[^/]+/(Chart\.yaml|values\.yaml|templates/.*)$