.pre-commit-config.yaml 807 B

12345678910111213141516171819202122232425262728293031
  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: go-imports
  8. args: [-local=github.com/Jguer/yay/v11/]
  9. - id: golangci-lint
  10. - id: go-unit-tests
  11. - id: go-build
  12. - repo: https://github.com/pre-commit/mirrors-prettier
  13. rev: v3.0.0-alpha.4 # Use the sha or tag you want to point at
  14. hooks:
  15. - id: prettier
  16. - repo: https://github.com/pre-commit/pre-commit-hooks
  17. rev: v4.4.0 # Use the ref you want to point at
  18. hooks:
  19. - id: trailing-whitespace
  20. - id: check-json
  21. - id: check-yaml
  22. - id: check-added-large-files
  23. - repo: https://github.com/commitizen-tools/commitizen
  24. rev: v2.38.0
  25. hooks:
  26. - id: commitizen
  27. stages: [commit-msg]