.pre-commit-config.yaml 788 B

12345678910111213141516171819202122232425262728293031
  1. repos:
  2. - repo: https://github.com/pre-commit/pre-commit-hooks
  3. rev: v6.0.0
  4. hooks:
  5. - id: trailing-whitespace
  6. exclude_types: [markdown]
  7. exclude: LICENSE
  8. - id: end-of-file-fixer
  9. exclude: LICENSE
  10. - id: check-yaml
  11. - id: check-added-large-files
  12. - repo: https://github.com/tekwizely/pre-commit-golang
  13. rev: v1.0.0-rc.2
  14. hooks:
  15. - id: go-imports-repo
  16. args:
  17. - "-local"
  18. - "git.bobomao.top/joey/testwh"
  19. - "-w"
  20. - id: go-vet-repo-mod
  21. # TODO enable this
  22. #- id: go-staticcheck-repo-mod
  23. - id: go-mod-tidy
  24. - repo: https://github.com/beeper/pre-commit-go
  25. rev: v0.4.2
  26. hooks:
  27. # TODO enable this
  28. #- id: zerolog-ban-msgf
  29. - id: zerolog-use-stringer