.pre-commit-config.yaml 790 B

12345678910111213141516171819202122232425262728293031323334
  1. repos:
  2. - repo: local
  3. hooks:
  4. - id: shfmt
  5. name: shfmt
  6. minimum_pre_commit_version: 2.4.0
  7. language: system
  8. types: [shell]
  9. entry: bash
  10. args: [-c, make lint-sh]
  11. - id: shellcheck
  12. name: shellcheck
  13. language: system
  14. types: [shell]
  15. entry: bash
  16. args: [-c, make style-sh]
  17. - id: stylua
  18. name: StyLua
  19. language: rust
  20. entry: stylua
  21. types: [lua]
  22. args: ["-"]
  23. - id: luacheck
  24. name: luacheck
  25. language: system
  26. entry: luacheck
  27. types: [lua]
  28. args: [.]
  29. - id: commitlint
  30. name: commitlint
  31. language: system
  32. entry: bash
  33. args: [./utils/ci/run_commitlint.sh]
  34. stages: [commit-msg]