.pre-commit-config.yaml 745 B

123456789101112131415161718192021222324252627282930
  1. repos:
  2. - repo: local
  3. hooks:
  4. - id: shfmt
  5. name: shfmt
  6. minimum_pre_commit_version: 2.4.0
  7. language: golang
  8. additional_dependencies: [mvdan.cc/sh/v3/cmd/shfmt@v3.2.2]
  9. entry: shfmt
  10. args: [-i=2, -ci, -w]
  11. types: [shell]
  12. - id: shellcheck
  13. name: shellcheck
  14. language: system
  15. types: [shell]
  16. entry: bash
  17. args:
  18. [-c, "shfmt -f $(git rev-parse --show-toplevel) | xargs shellcheck"]
  19. - id: stylua
  20. name: StyLua
  21. language: rust
  22. entry: stylua
  23. types: [lua]
  24. args: [.]
  25. - id: luacheck
  26. name: luacheck
  27. language: system
  28. entry: luacheck
  29. types: [lua]
  30. args: [.]