.pre-commit-config.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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: v4.8.2
  7. hooks:
  8. - id: commitizen
  9. - repo: https://github.com/pre-commit/pre-commit-hooks
  10. rev: v5.0.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: v9.0.1
  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: https://github.com/prettier/pre-commit
  34. rev: main
  35. hooks:
  36. - id: prettier
  37. additional_dependencies:
  38. - prettier@3.5.3
  39. - repo: local
  40. hooks:
  41. - id: install-frontend
  42. name: Install frontend
  43. entry: npm install
  44. language: system
  45. always_run: false
  46. pass_filenames: false
  47. stages: [pre-commit, pre-merge-commit, pre-push, manual]
  48. - id: eslint
  49. name: eslint
  50. entry: npm run lint
  51. language: system
  52. always_run: false
  53. pass_filenames: false
  54. verbose: true
  55. stages: [pre-commit, pre-merge-commit, pre-push, manual]
  56. - id: build-frontend
  57. name: Build frontend
  58. entry: npm run build
  59. language: system
  60. always_run: false
  61. pass_filenames: false
  62. verbose: true
  63. stages: [pre-commit, pre-merge-commit, pre-push, manual]