1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2026-06-03 16:35:37 +02:00
Files
woodpecker/.pre-commit-config.yaml
T

63 lines
1.9 KiB
YAML
Raw Normal View History

2024-01-27 21:15:10 +01:00
# cSpell:ignore checkmake hadolint autofix autoupdate
2023-10-28 21:58:59 +02:00
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
2023-10-28 21:58:59 +02:00
hooks:
- id: end-of-file-fixer
2025-10-21 12:19:39 +02:00
exclude: '\.sql$'
2023-10-28 21:58:59 +02:00
- id: trailing-whitespace
2025-09-28 22:07:29 +02:00
exclude: ^docs/versioned_docs/.+/40-cli.md$
2023-10-28 21:58:59 +02:00
- repo: https://github.com/golangci/golangci-lint
rev: v2.12.2
2023-10-28 21:58:59 +02:00
hooks:
- id: golangci-lint
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.48.0
2023-10-28 21:58:59 +02:00
hooks:
- id: markdownlint
exclude: '^(docs/versioned_docs/.*|CHANGELOG.md)$'
language_version: 24.14.0
2023-10-28 21:58:59 +02:00
- repo: https://github.com/mrtazz/checkmake
rev: v0.3.2
2023-10-28 21:58:59 +02:00
hooks:
- id: checkmake
2023-10-31 09:14:09 +01:00
exclude: '^docker/Dockerfile.make$' # actually a Dockerfile and not a makefile
2023-10-28 21:58:59 +02:00
- repo: https://github.com/hadolint/hadolint
rev: v2.14.0
2023-10-28 21:58:59 +02:00
hooks:
- id: hadolint
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.8.3
2023-11-19 22:47:14 +01:00
hooks:
- id: prettier
2023-12-29 12:51:02 +01:00
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.38.0
2023-12-29 12:51:02 +01:00
hooks:
- id: yamllint
args: [--strict, -c=.yamllint.yaml]
2024-01-11 18:43:54 +01: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 18:29:19 +01:00
exclude: '^(.gitpod.yml|.github/ISSUE_TEMPLATE/config.yml)$'
2023-10-28 21:58:59 +02: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'
autoupdate_schedule: quarterly
2023-10-31 09:14:09 +01:00
# NB: hadolint not included in pre-commit.ci
2024-05-12 12:14:06 +02:00
skip: [check-hooks-apply, check-useless-excludes, hadolint, prettier, golangci-lint]
2023-10-28 21:58:59 +02:00
submodules: false