dfb5fa021f
- add gentypes: a static Go port of `puppet generate types` for classic and Resource API types - run it in prepare when w10k.generate_types is set; a failure fails the env and keeps the old link - confine reads to the worktree and module cache, refuse a committed .resource_types symlink - test against real puppet output for a vendored Apache-2.0 type set
32 lines
747 B
YAML
32 lines
747 B
YAML
exclude: ^internal/gentypes/testdata/
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.6.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-merge-conflict
|
|
- id: mixed-line-ending
|
|
args: [--fix=lf]
|
|
|
|
- repo: https://github.com/dnephin/pre-commit-golang
|
|
rev: v0.5.1
|
|
hooks:
|
|
- id: go-fmt
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: go-vet-mod
|
|
name: go vet (module)
|
|
entry: go vet ./...
|
|
language: system
|
|
types: [go]
|
|
pass_filenames: false
|
|
- id: go-test-mod
|
|
name: go test (module)
|
|
entry: go test ./...
|
|
language: system
|
|
types: [go]
|
|
pass_filenames: false
|