Skip to content

Commit 27cdb87

Browse files
chore(repo): add pre-commit (#622)
* chore(repo): retire dependabot for renovate Signed-off-by: Oliver Bähler <[email protected]> * chore(repo): add pre-commit Signed-off-by: Oliver Bähler <[email protected]> --------- Signed-off-by: Oliver Bähler <[email protected]>
1 parent 69d8dda commit 27cdb87

File tree

3 files changed

+77
-20
lines changed

3 files changed

+77
-20
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
repos:
2+
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
3+
rev: v9.20.0
4+
hooks:
5+
- id: commitlint
6+
stages: [commit-msg]
7+
additional_dependencies: ['@commitlint/config-conventional', 'commitlint-plugin-function-rules']
8+
- repo: https://github.com/pre-commit/pre-commit-hooks
9+
rev: v3.2.0
10+
hooks:
11+
- id: check-executables-have-shebangs
12+
- id: check-yaml
13+
- id: double-quote-string-fixer
14+
- id: end-of-file-fixer
15+
- id: trailing-whitespace
16+
- repo: local
17+
hooks:
18+
- id: run-helm-docs
19+
name: Execute helm-docs
20+
entry: make helm-docs
21+
language: system
22+
files: ^charts/
23+
- id: run-helm-schema
24+
name: Execute helm-schema
25+
entry: make helm-schema
26+
language: system
27+
files: ^charts/
28+
- id: run-helm-lint
29+
name: Execute helm-lint
30+
entry: make helm-lint
31+
language: system
32+
files: ^charts/
33+
- id: golangci-lint
34+
name: Execute golangci-lint
35+
entry: make golint
36+
language: system
37+
files: \.go$
38+
- repo: https://github.com/tekwizely/pre-commit-golang
39+
rev: v1.0.0-rc.1
40+
hooks:
41+
- id: go-vet
42+
- id: go-vet-mod
43+
- id: go-vet-pkg
44+
- id: go-vet-repo-mod
45+
- id: go-vet-repo-pkg
46+
- id: go-revive
47+
- id: go-revive-mod
48+
- id: go-revive-repo-mod
49+
- id: go-sec-mod
50+
- id: go-sec-pkg
51+
- id: go-sec-repo-mod
52+
- id: go-sec-repo-pkg

renovate.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["config:recommended", ":dependencyDashboard"],
4+
"baseBranches": ["main"],
5+
"prHourlyLimit": 0,
6+
"prConcurrentLimit": 0,
7+
"branchConcurrentLimit": 0,
8+
"mode": "full",
9+
"commitMessageLowerCase": "auto",
10+
"semanticCommits": "enabled",
11+
"semanticCommitType": "feat",
12+
"ignorePaths": [
13+
"docs"
14+
],
15+
"flux": {
16+
"fileMatch": ["^.*flux\\.yaml$"]
17+
},
18+
"packageRules": [
19+
{
20+
"matchManagers": ["github-actions", "flux"],
21+
"groupName": "all-ci-updates",
22+
"updateTypes": ["major", "minor", "patch"]
23+
}
24+
]
25+
}

0 commit comments

Comments
 (0)