.pre-commit-config.yaml 786 B

12345678910111213141516171819202122232425262728293031
  1. default_stages: [commit]
  2. repos:
  3. - repo: git://github.com/dnephin/pre-commit-golang
  4. rev: v0.3.5
  5. hooks:
  6. - id: go-fmt
  7. - id: go-imports
  8. args: [-local=github.com/Jguer/yay/v10/]
  9. - id: golangci-lint
  10. - id: go-unit-tests
  11. - id: go-build
  12. - repo: https://github.com/pre-commit/mirrors-prettier
  13. rev: v2.2.1 # 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: v3.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/Woile/commitizen
  24. rev: v2.17.6
  25. hooks:
  26. - id: commitizen
  27. stages: [commit-msg]