There is this tool called pre-commit which supports creating and managing multi-language pre-commit hooks easily. I believe you only need to add a .pre-commit-hooks.yaml file to the repository and the pre-commit tool will take care of compiling and invoking the binary when necessary! I use Lua (and Selene) both at work and for personal projects besides other languages (and tools) hence having one single tool to manage our pre-commit hooks is necessary.
There is more information in the "Creating New Hooks" section of the docs. If you are willing to support pre-commit hooks for Selene, I think I can write a config for the hook and share a PR. So let me know your thoughts?
There is this tool called pre-commit which supports creating and managing multi-language pre-commit hooks easily. I believe you only need to add a
.pre-commit-hooks.yaml
file to the repository and thepre-commit
tool will take care of compiling and invoking the binary when necessary! I use Lua (and Selene) both at work and for personal projects besides other languages (and tools) hence having one single tool to manage our pre-commit hooks is necessary.There is more information in the "Creating New Hooks" section of the docs. If you are willing to support pre-commit hooks for Selene, I think I can write a config for the hook and share a PR. So let me know your thoughts?