1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors-Tekton

Клонировать/Скачать
.pre-commit-config.yaml 1.2 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Vibhav Bobade Отправлено 03.03.2025 14:07 60cdce8
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_install_hook_types: ["pre-push"]
exclude: '(^vendor|.*golden$)'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-added-large-files
- id: check-yaml
args: ["--allow-multiple-documents"]
# Ignore yaml files with {{ }} cause they're not valid.
exclude: '(test\/gohelloworld\/gohelloworld-chart\/templates\/.*yaml$)'
- id: check-shebang-scripts-are-executable
- id: check-json
- id: detect-private-key
# Ignore test yaml files with private key.
exclude: "(.*_test.go|^examples\/v1\/pipelineruns\/beta\/isolated-workspaces.yaml$)"
- repo: local
hooks:
- id: lint-yaml
name: "Lint YAML files"
entry: bash -c 'yamllint -c .yamllint $(find . -path ./vendor -prune -o -type f -regex ".*y[a]ml" -print)'
language: system
types: [yaml]
- id: lint-go
name: "Run make golangci-lint"
entry: make
args: ["golangci-lint"]
language: system
types: [go]
pass_filenames: false
- id: test-unit
name: "Run make test-unit"
entry: make
args: ["test-unit"]
language: system
types: [go]
pass_filenames: false

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mirrors-Tekton.git
git@api.gitlife.ru:oschina-mirror/mirrors-Tekton.git
oschina-mirror
mirrors-Tekton
mirrors-Tekton
main