.pre-commit-config.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. exclude: ^(data/.*|.vscode/.*|node_modules/.*|)$
  2. repos:
  3. - repo: https://github.com/commitizen-tools/commitizen
  4. # Please run `pre-commit install --hook-type commit-msg` to check commit messages
  5. rev: v3.29.1
  6. hooks:
  7. - id: commitizen
  8. - repo: https://github.com/pre-commit/pre-commit-hooks
  9. rev: v5.0.0
  10. hooks:
  11. - id: check-yaml
  12. - id: check-json
  13. - id: check-toml
  14. - id: end-of-file-fixer
  15. - id: trailing-whitespace
  16. - id: detect-private-key
  17. - id: check-case-conflict
  18. - id: check-ast
  19. - id: check-added-large-files
  20. args: ["--maxkb=1000"]
  21. - id: check-merge-conflict
  22. args: [--assume-in-merge]
  23. # Integrate filename spell checking https://github.com/streetsidesoftware/cspell/issues/3063
  24. # currently using `make cspell-filenames` as a workaround.
  25. - repo: https://github.com/streetsidesoftware/cspell-cli.git
  26. rev: v8.13.3
  27. hooks:
  28. - id: cspell
  29. name: cspell
  30. additional_dependencies:
  31. - "@cspell/dict-de-ch"
  32. - "@cspell/dict-en-gb"
  33. args:
  34. - "lint"
  35. - "--show-suggestions"
  36. - "--no-must-find-files"
  37. - "--locale"
  38. - "en-GB,de-CH"
  39. - repo: local
  40. hooks:
  41. - id: redocly-lint
  42. name: redocly-lint
  43. language: system
  44. entry: make lint