.pre-commit-config.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. default_language_version:
  2. python: python3.11
  3. repos:
  4. - repo: https://github.com/commitizen-tools/commitizen
  5. # Please run `pre-commit install --hook-type commit-msg` to check commit messages
  6. rev: v3.29.1
  7. hooks:
  8. - id: commitizen
  9. - repo: https://github.com/pre-commit/pre-commit-hooks
  10. rev: v4.6.0
  11. hooks:
  12. - id: check-yaml
  13. - id: end-of-file-fixer
  14. - id: trailing-whitespace
  15. - id: check-case-conflict
  16. - id: check-ast
  17. - id: check-added-large-files
  18. args: ["--maxkb=1000"]
  19. - repo: https://github.com/streetsidesoftware/cspell-cli.git
  20. rev: v8.13.3
  21. hooks:
  22. - id: cspell
  23. name: cspell
  24. additional_dependencies:
  25. - "@cspell/dict-de-ch"
  26. - "@cspell/dict-en-gb"
  27. args:
  28. - "lint"
  29. - "--show-suggestions"
  30. - "--no-must-find-files"
  31. - "--locale"
  32. - "en-GB,de-CH"
  33. - repo: local
  34. hooks:
  35. - id: install-frontend
  36. name: Install frontend
  37. entry: npm install
  38. language: system
  39. always_run: false
  40. pass_filenames: false
  41. stages: [commit, merge-commit, push, manual]
  42. - id: eslint
  43. name: eslint
  44. entry: npm run lint
  45. language: system
  46. always_run: false
  47. pass_filenames: false
  48. verbose: true
  49. stages: [commit, merge-commit, push, manual]
  50. - id: build-frontend
  51. name: Build frontend
  52. entry: npm run build
  53. language: system
  54. always_run: false
  55. pass_filenames: false
  56. verbose: true
  57. stages: [commit, merge-commit, push, manual]