2024-08-28 06:31:07 +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:
|
2024-08-28 11:57:16 +00:00
|
|
|
- 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$"
|
2024-08-28 06:31:07 +00:00
|
|
|
|
|
|
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
|
|
|
rev: v0.9.0.2
|
|
|
|
hooks:
|
|
|
|
- id: shellcheck
|
|
|
|
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
2024-08-28 11:57:16 +00:00
|
|
|
- id: make-lint-install
|
|
|
|
name: install linters
|
|
|
|
entry: make lint-install
|
|
|
|
language: system
|
|
|
|
pass_filenames: false
|
|
|
|
|
|
|
|
- id: make-lint
|
|
|
|
name: run linters
|
|
|
|
entry: make lint
|
|
|
|
language: system
|
|
|
|
pass_filenames: false
|
|
|
|
|
|
|
|
- id: go-unit-tests
|
|
|
|
name: go unit tests
|
|
|
|
entry: make test
|
|
|
|
pass_filenames: false
|
|
|
|
types: [go]
|
|
|
|
language: system
|