2023-03-03 09:51:08 +00:00
|
|
|
ci:
|
|
|
|
autofix_prs: false
|
|
|
|
|
|
|
|
repos:
|
|
|
|
- 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$"
|
2023-03-03 09:55:17 +00:00
|
|
|
|
2024-03-14 07:31:18 +00:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: gofumpt
|
|
|
|
name: gofumpt
|
|
|
|
entry: make fumpt
|
|
|
|
pass_filenames: false
|
|
|
|
types: [go]
|
|
|
|
language: system
|
|
|
|
|
2024-03-14 07:27:36 +00:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: go-unit-tests
|
|
|
|
name: go unit tests
|
|
|
|
entry: make test GOFLAGS=''
|
|
|
|
pass_filenames: false
|
|
|
|
types: [go]
|
|
|
|
language: system
|
|
|
|
|
2023-03-03 09:55:17 +00:00
|
|
|
- repo: https://github.com/golangci/golangci-lint
|
2024-03-14 07:22:56 +00:00
|
|
|
rev: v1.56.2
|
2023-03-03 09:55:17 +00:00
|
|
|
hooks:
|
|
|
|
- id: golangci-lint
|