.pre-commit-config.yaml 735 B

1234567891011121314151617181920212223242526272829
  1. default_stages: [commit]
  2. repos:
  3. - repo: https://github.com/dnephin/pre-commit-golang
  4. rev: v0.5.1
  5. hooks:
  6. - id: go-fmt
  7. - id: golangci-lint
  8. - id: go-unit-tests
  9. - id: go-build
  10. - repo: https://github.com/pre-commit/mirrors-prettier
  11. rev: v4.0.0-alpha.8 # Use the sha or tag you want to point at
  12. hooks:
  13. - id: prettier
  14. - repo: https://github.com/pre-commit/pre-commit-hooks
  15. rev: v4.5.0 # Use the ref you want to point at
  16. hooks:
  17. - id: trailing-whitespace
  18. - id: check-json
  19. - id: check-yaml
  20. - id: check-added-large-files
  21. - repo: https://github.com/commitizen-tools/commitizen
  22. rev: v3.15.0
  23. hooks:
  24. - id: commitizen
  25. stages: [commit-msg]