provider-rke2/.pre-commit-config.yaml
Nianyu Shen ee39a2bd51
PE-5129 PE-5115 feat: support custom cluster root path and cluster reset event (#71)
* feat: support custom cluster root path

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

* chore(dep): bump yaml from v2 to v3

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

* ci: update gcr push token

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

* support cluster reset event

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

* fix: use ubuntu-22.04 as runner

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

---------

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>
2025-01-24 08:21:04 -08:00

27 lines
917 B
YAML

# install pre-commit on your system and then
# run pre-commit install in this repository.
# You can by pass commit hooks with:
# git commit -n
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v2.4.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
- id: go-mod-tidy
- repo: https://github.com/golangci/golangci-lint
rev: v1.61.0
hooks:
- id: golangci-lint
name: golangci-lint
description: Fast linters runner for Go. Note that only modified files are linted, so linters like 'unused' that need to scan all files won't work as expected.
entry: golangci-lint run --new-from-rev HEAD --whole-files -v
types: [go]
language: golang
require_serial: true
pass_filenames: false
verbose: true