.pre-commit-config.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ---
  2. # See https://pre-commit.com for more information
  3. # See https://pre-commit.com/hooks.html for more hooks
  4. repos:
  5. - repo: https://github.com/pre-commit/pre-commit-hooks
  6. rev: v3.2.0
  7. hooks:
  8. - id: trailing-whitespace
  9. - id: end-of-file-fixer
  10. - id: check-yaml
  11. - id: check-added-large-files
  12. # Alternative semantic commit checker
  13. - repo: https://github.com/compilerla/conventional-pre-commit
  14. rev: v3.1.0
  15. hooks:
  16. - id: conventional-pre-commit
  17. stages: [commit-msg]
  18. args: [] # optional: list of Conventional Commits types to allow e.g. [feat, fix, ci, chore, test]
  19. - repo: local
  20. hooks:
  21. - id: service-codestyle
  22. name: service-codestyle
  23. entry: make service-codestyle
  24. language: system
  25. pass_filenames: false
  26. always_run: true
  27. - id: frontend-codestyle
  28. name: frontend-codestyle
  29. entry: make frontend-codestyle
  30. language: system
  31. pass_filenames: false
  32. always_run: true
  33. - id: it
  34. name: it
  35. entry: make service-codestyle frontend-codestyle
  36. language: system
  37. pass_filenames: false
  38. always_run: true