加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.pre-commit-config.yaml 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
Moritz Wanzenböck 提交于 2024-11-27 14:12 . pre-commit: add docs check
# 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.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
exclude: |
(?x)^(
charts/.*/templates/.*|
mkdocs.yml
)$
args:
- --multi
- id: check-added-large-files
- repo: https://github.com/Bahjat/pre-commit-golang
rev: v1.0.2
hooks:
- id: gofumpt
types: [go]
exclude: ".*/zz_generated.*\\.go$"
- id: golangci-lint
types: [go]
args:
- --new-from-rev=HEAD
- repo: local
hooks:
- id: generate-deep-copy
name: generated deep-copy code must be up-to-date
language: system
pass_filenames: false
entry: make manifests
- id: run-tests
name: Run go tests
language: system
pass_filenames: false
entry: make test
- id: sync-chart
name: Run make sync-chart
language: system
pass_filenames: false
entry: make sync-chart
- id: check-docs
name: check docs builds
language: system
pass_filenames: false
entry: mkdocs build -s
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化