2023-10-04 08:29:00 +00:00
|
|
|
ci:
|
|
|
|
autofix_prs: false
|
|
|
|
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/jorisroovers/gitlint
|
|
|
|
rev: v0.19.1
|
|
|
|
hooks:
|
|
|
|
- id: gitlint
|
|
|
|
stages: [commit-msg]
|
|
|
|
- id: gitlint-ci
|
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v4.4.0
|
|
|
|
hooks:
|
|
|
|
- id: check-added-large-files
|
|
|
|
- id: check-case-conflict
|
|
|
|
- id: check-executables-have-shebangs
|
|
|
|
- id: check-shebang-scripts-are-executable
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-json
|
|
|
|
- id: check-xml
|
|
|
|
- id: check-yaml
|
|
|
|
- id: trailing-whitespace
|
|
|
|
args: [--markdown-linebreak-ext=md]
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
exclude: ".key$"
|
|
|
|
|
|
|
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
2023-11-01 08:02:30 +00:00
|
|
|
rev: v0.9.0.6
|
2023-10-04 08:29:00 +00:00
|
|
|
hooks:
|
|
|
|
- id: shellcheck
|
|
|
|
|
2023-11-01 08:02:30 +00:00
|
|
|
- repo: local
|
2023-10-04 08:29:00 +00:00
|
|
|
hooks:
|
2023-11-01 08:02:30 +00:00
|
|
|
- id: make-lint
|
|
|
|
name: Run Make Lint
|
|
|
|
entry: make lint
|
|
|
|
language: system
|
|
|
|
pass_filenames: false
|
2023-10-04 08:29:00 +00:00
|
|
|
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: go-unit-tests
|
|
|
|
name: go unit tests
|
|
|
|
entry: make test
|
|
|
|
pass_filenames: false
|
|
|
|
types: [go]
|
|
|
|
language: system
|
2023-11-01 08:02:30 +00:00
|
|
|
|
|
|
|
- repo: https://github.com/TekWizely/pre-commit-golang
|
|
|
|
rev: v1.0.0-rc.1
|
|
|
|
hooks:
|
|
|
|
- id: go-staticcheck-repo-mod
|
|
|
|
- id: go-mod-tidy
|