.pre-commit-config.yaml 586 B

12345678910111213141516171819202122
  1. repos:
  2. - repo: git://github.com/dnephin/pre-commit-golang
  3. rev: v0.3.5
  4. hooks:
  5. - id: go-fmt
  6. - id: go-imports
  7. args: [-local=github.com/Jguer/yay/v10/]
  8. - id: golangci-lint
  9. - id: go-unit-tests
  10. - id: go-build
  11. - repo: https://github.com/prettier/prettier
  12. rev: 2.0.5 # Use the sha or tag you want to point at
  13. hooks:
  14. - id: prettier
  15. - repo: https://github.com/pre-commit/pre-commit-hooks
  16. rev: v3.1.0 # Use the ref you want to point at
  17. hooks:
  18. - id: trailing-whitespace
  19. - id: check-json
  20. - id: check-yaml