Skip to content

Commit ad1ecec

Browse files
chmouelpiyush-garg
authored andcommitted
Use more pre-commit instead of make target
because it's builtin and include usually the tool version. Signed-off-by: Chmouel Boudjnah <[email protected]>
1 parent b9a0a1d commit ad1ecec

File tree

2 files changed

+15
-23
lines changed

2 files changed

+15
-23
lines changed

.pre-commit-config.yaml

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,41 +27,34 @@ repos:
2727
- id: codespell
2828
files: "^(docs/content|pkg|test)/.*"
2929
- repo: https://github.com/astral-sh/ruff-pre-commit
30-
rev: v0.1.7
30+
rev: v0.1.11
3131
hooks:
3232
- id: ruff
3333
args: ["--fix"]
3434
- id: ruff-format
35+
- repo: https://github.com/igorshubovych/markdownlint-cli
36+
rev: v0.38.0
37+
hooks:
38+
- id: markdownlint-fix-docker
39+
- repo: https://github.com/adrienverge/yamllint.git
40+
rev: v1.33.0
41+
hooks:
42+
- id: yamllint
43+
args: [-c=.yamllint]
44+
- repo: https://github.com/golangci/golangci-lint
45+
rev: v1.55.2
46+
hooks:
47+
- id: golangci-lint
48+
args: ["./pkg/...", "./test/..."]
3549
- repo: local
3650
hooks:
37-
- id: lint-markdown
38-
name: "Lint Markdown"
39-
entry: make
40-
args: ["lint-md"]
41-
language: system
42-
types: [markdown]
43-
pass_filenames: false
44-
- id: lint-go
45-
name: "Lint GO"
46-
entry: make
47-
args: ["lint-go"]
48-
language: system
49-
types: [go]
50-
pass_filenames: false
5151
- id: test
5252
name: "Unit testing"
5353
entry: make
5454
args: ["test"]
5555
language: system
5656
types: [go]
5757
pass_filenames: false
58-
- id: lint-yaml
59-
name: "Lint YAML"
60-
entry: make
61-
args: ["lint-yaml"]
62-
language: system
63-
types: [yaml]
64-
pass_filenames: false
6558
- id: check-generated
6659
name: "Check generated vendor and golden files"
6760
entry: make

.tekton/linter.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ spec:
8383
workingDir: $(workspaces.source.path)
8484
script: |
8585
shellcheck $(find hack/ -type f -regex ".*sh" -print)
86-
8786
- name: gitlint
8887
displayName: "Git commit linter"
8988
runAfter:

0 commit comments

Comments
 (0)