Skip to content

ci: setup prek with common Go CI checks#11

Open
STRRL wants to merge 2 commits intomasterfrom
ci/setup-prek
Open

ci: setup prek with common Go CI checks#11
STRRL wants to merge 2 commits intomasterfrom
ci/setup-prek

Conversation

@STRRL
Copy link
Owner

@STRRL STRRL commented Feb 23, 2026

Summary

  • Add prek.toml configuration with common Go CI pre-commit hooks: trailing-whitespace, end-of-file-fixer, check-yaml, check-added-large-files, and golangci-lint
  • Auto-fix trailing whitespace and missing final newlines across the repo
  • Helm templates are excluded from YAML validation (they contain Go template syntax)

Test plan

  • prek run --all-files passes all hooks
  • prek install sets up the pre-commit git hook
  • Git commit triggers hooks automatically and passes

Add prek.toml configuration with:
- trailing-whitespace and end-of-file-fixer hooks
- check-yaml (with Helm templates excluded)
- check-added-large-files
- golangci-lint

Auto-fix trailing whitespace and missing final newlines across the repo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant