2023-03-02 10:56:11 +00:00
|
|
|
ci:
|
|
|
|
autofix_prs: false
|
|
|
|
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-12-01 10:12:05 +00:00
|
|
|
rev: v4.5.0
|
2023-03-02 10:56:11 +00:00
|
|
|
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
|
2024-04-24 11:59:41 +00:00
|
|
|
exclude: "(.key|.svg)$"
|
2023-03-02 11:06:56 +00:00
|
|
|
|
2023-03-15 11:35:50 +00:00
|
|
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
2023-12-01 10:12:05 +00:00
|
|
|
rev: v0.9.0.6
|
2023-03-02 11:38:00 +00:00
|
|
|
hooks:
|
2023-03-15 11:35:50 +00:00
|
|
|
- id: shellcheck
|
2023-03-20 15:17:00 +00:00
|
|
|
|
2023-08-14 12:53:34 +00:00
|
|
|
- repo: local
|
2023-03-20 15:17:00 +00:00
|
|
|
hooks:
|
2023-08-14 12:53:34 +00:00
|
|
|
- id: make-lint
|
|
|
|
name: Run Make Lint
|
|
|
|
entry: make lint
|
|
|
|
language: system
|
|
|
|
pass_filenames: false
|
2023-03-24 07:36:34 +00:00
|
|
|
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: go-unit-tests
|
|
|
|
name: go unit tests
|
2024-03-12 10:08:09 +00:00
|
|
|
entry: make test GOFLAGS=''
|
2023-03-24 07:36:34 +00:00
|
|
|
pass_filenames: false
|
|
|
|
types: [go]
|
|
|
|
language: system
|
2023-04-03 14:05:10 +00:00
|
|
|
|
2023-10-31 14:00:57 +00:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: gofumpt
|
|
|
|
name: gofumpt
|
|
|
|
entry: make fumpt
|
|
|
|
pass_filenames: false
|
|
|
|
types: [go]
|
|
|
|
language: system
|
|
|
|
|
2023-04-03 14:05:10 +00:00
|
|
|
- repo: https://github.com/TekWizely/pre-commit-golang
|
|
|
|
rev: v1.0.0-rc.1
|
|
|
|
hooks:
|
|
|
|
- id: go-staticcheck-repo-mod
|
2023-05-04 10:47:52 +00:00
|
|
|
- id: go-mod-tidy
|