6c5e904e9d
Some checks failed
Integration / metadata (push) Has been cancelled
Integration / lint (push) Has been cancelled
Integration / test (push) Has been cancelled
Security / metadata (push) Has been cancelled
Security / analyze (push) Has been cancelled
Integration / build (push) Has been cancelled
Integration / report (push) Has been cancelled
Integration / container (push) Has been cancelled
Security / security-scan (push) Has been cancelled
Signed-off-by: William Artero <git@artero.dev>
76 lines
2 KiB
YAML
76 lines
2 KiB
YAML
# cspell:disable
|
|
## See https://pre-commit.com for more information
|
|
## See https://pre-commit.com/hooks.html for more hooks
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.5.0
|
|
hooks:
|
|
- id: check-added-large-files
|
|
- id: check-case-conflict
|
|
- id: check-merge-conflict
|
|
args:
|
|
- --assume-in-merge
|
|
- id: check-vcs-permalinks
|
|
- id: check-yaml
|
|
args: [--allow-multiple-documents]
|
|
- id: detect-private-key
|
|
# - id: end-of-file-fixer
|
|
- id: fix-byte-order-marker
|
|
- id: mixed-line-ending
|
|
# - id: no-commit-to-branch
|
|
- id: trailing-whitespace
|
|
- repo: https://gitlab.com/bmares/check-json5
|
|
rev: v1.0.0
|
|
hooks:
|
|
- id: check-json5
|
|
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
|
rev: 2.7.3
|
|
hooks:
|
|
- id: editorconfig-checker
|
|
exclude: vscode/.config/Code/User/globalStorage/.*
|
|
- repo: https://github.com/igorshubovych/markdownlint-cli
|
|
rev: v0.37.0
|
|
hooks:
|
|
- id: markdownlint
|
|
- repo: https://github.com/hadolint/hadolint
|
|
rev: v2.12.1-beta
|
|
hooks:
|
|
- id: hadolint
|
|
- repo: https://github.com/tekwizely/pre-commit-golang
|
|
rev: v1.0.0-rc.1
|
|
hooks:
|
|
- id: go-mod-tidy
|
|
name: go mod tidy
|
|
- id: go-build-repo-mod
|
|
name: go build
|
|
- id: go-test-repo-mod
|
|
name: go test
|
|
- id: golangci-lint-repo-mod
|
|
name: golangci-lint
|
|
##
|
|
## Invoking Custom Go Tools
|
|
## - Configured *entirely* through the `args` attribute, ie:
|
|
## args: [ go, test, ./... ]
|
|
## - Use the `name` attribute to provide better messaging when the hook runs
|
|
## - Use the `alias` attribute to be able invoke your hook via `pre-commit run`
|
|
##
|
|
# - id: my-cmd
|
|
# - id: my-cmd-mod
|
|
# - id: my-cmd-pkg
|
|
# - id: my-cmd-repo
|
|
# - id: my-cmd-repo-mod
|
|
# - id: my-cmd-repo-pkg
|
|
|
|
ci:
|
|
autofix_commit_msg: "style: pre-commit automatic fixes"
|
|
autofix_prs: true
|
|
autoupdate_commit_msg: "chore: pre-commit automatic update"
|
|
autoupdate_schedule: weekly
|
|
submodules: false
|
|
skip:
|
|
- hadolint
|
|
- golangci-lint-repo-mod
|
|
- go-mod-tidy
|
|
- go-build-repo-mod
|
|
- go-test-repo-mod
|