2024-01-27 20:15:10 +00:00
|
|
|
# cSpell:ignore checkmake hadolint autofix autoupdate
|
2023-10-28 19:58:59 +00:00
|
|
|
repos:
|
|
|
|
- repo: meta
|
|
|
|
hooks:
|
|
|
|
- id: check-hooks-apply
|
|
|
|
- id: check-useless-excludes
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-10-06 05:31:39 +00:00
|
|
|
rev: v5.0.0
|
2023-10-28 19:58:59 +00:00
|
|
|
hooks:
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- repo: https://github.com/golangci/golangci-lint
|
2024-11-30 00:53:11 +00:00
|
|
|
rev: v1.62.2
|
2023-10-28 19:58:59 +00:00
|
|
|
hooks:
|
|
|
|
- id: golangci-lint
|
|
|
|
- repo: https://github.com/igorshubovych/markdownlint-cli
|
2024-11-23 04:35:29 +00:00
|
|
|
rev: v0.43.0
|
2023-10-28 19:58:59 +00:00
|
|
|
hooks:
|
|
|
|
- id: markdownlint
|
2024-02-08 16:19:01 +00:00
|
|
|
exclude: '^(docs/versioned_docs/.*|CHANGELOG.md)$'
|
2023-10-28 19:58:59 +00:00
|
|
|
- repo: https://github.com/mrtazz/checkmake
|
|
|
|
rev: 0.2.2
|
|
|
|
hooks:
|
|
|
|
- id: checkmake
|
2023-10-31 08:14:09 +00:00
|
|
|
exclude: '^docker/Dockerfile.make$' # actually a Dockerfile and not a makefile
|
2023-10-28 19:58:59 +00:00
|
|
|
- repo: https://github.com/hadolint/hadolint
|
2024-10-08 04:24:03 +00:00
|
|
|
rev: v2.13.1-beta
|
2023-10-28 19:58:59 +00:00
|
|
|
hooks:
|
|
|
|
- id: hadolint
|
2024-12-22 18:56:14 +00:00
|
|
|
- repo: https://github.com/rbubley/mirrors-prettier
|
|
|
|
rev: v3.4.2
|
2023-11-19 21:47:14 +00:00
|
|
|
hooks:
|
|
|
|
- id: prettier
|
2023-12-29 11:51:02 +00:00
|
|
|
- repo: https://github.com/adrienverge/yamllint.git
|
2024-03-26 07:03:53 +00:00
|
|
|
rev: v1.35.1
|
2023-12-29 11:51:02 +00:00
|
|
|
hooks:
|
|
|
|
- id: yamllint
|
|
|
|
args: [--strict, -c=.yamllint.yaml]
|
2024-01-11 17:43:54 +00:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: yaml-file-extension
|
|
|
|
name: Check if YAML files has *.yaml extension.
|
|
|
|
entry: YAML filenames must have .yaml extension.
|
|
|
|
language: fail
|
|
|
|
files: .yml$
|
2024-01-20 17:29:19 +00:00
|
|
|
exclude: '^(.gitpod.yml|.github/ISSUE_TEMPLATE/config.yml)$'
|
2023-10-28 19:58:59 +00:00
|
|
|
|
|
|
|
ci:
|
|
|
|
autofix_commit_msg: |
|
|
|
|
[pre-commit.ci] auto fixes from pre-commit.com hooks [CI SKIP]
|
|
|
|
|
|
|
|
for more information, see https://pre-commit.ci
|
|
|
|
autofix_prs: true
|
|
|
|
autoupdate_branch: ''
|
|
|
|
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
|
2024-03-21 10:22:36 +00:00
|
|
|
autoupdate_schedule: quarterly
|
2023-10-31 08:14:09 +00:00
|
|
|
# NB: hadolint not included in pre-commit.ci
|
2024-05-12 10:14:06 +00:00
|
|
|
skip: [check-hooks-apply, check-useless-excludes, hadolint, prettier, golangci-lint]
|
2023-10-28 19:58:59 +00:00
|
|
|
submodules: false
|