43 lines
988 B
YAML
43 lines
988 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-merge-conflict
|
|
- id: check-executables-have-shebangs
|
|
- id: mixed-line-ending
|
|
args: [--fix=lf]
|
|
|
|
- repo: https://github.com/AleksaC/hadolint-py
|
|
rev: v2.15.1
|
|
hooks:
|
|
- id: hadolint
|
|
files: Containerfile$
|
|
|
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
|
rev: v0.11.0.1
|
|
hooks:
|
|
- id: shellcheck
|
|
|
|
- repo: https://github.com/dnephin/pre-commit-golang
|
|
rev: v0.5.1
|
|
hooks:
|
|
- id: go-fmt
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: go-vet
|
|
name: go vet
|
|
entry: make vet
|
|
language: system
|
|
pass_filenames: false
|
|
types: [go]
|
|
- id: go-unit-tests
|
|
name: go unit tests
|
|
entry: make test
|
|
language: system
|
|
pass_filenames: false
|
|
files: (\.go|allowed-hosts)$
|