elixir-pre-commit
elixir-pre-commit copied to clipboard
✅ Pre-commit hooks for Elixir projects
I just git cloned the https://github.com/dwyl/elixir-auth-github project and ran `mix deps.get` followed by `mix test` and got the following warning/error:  ``` You have configured application :pre_commit in your configuration...
I've come across this when testing the hooks, the line trying to pop the stash expects a `0` return code. If there are no changes to stash pop, this fails.
I'm not sure how we can work around our script overwriting existing pre-commit hooks, but I thought it worth opening this issue for ideas and discussion :blush:
When I tried updating to 0.3.4, the pre-commit hook started restoring files I had deleted. Using `git stash push --keep-index` as in #30 restores deleted files to the working tree:...
We need to work out how to re-compile the pre_commit task when the config changes. Example: A user sets up pre_commit for a project with just `test` in the config....
This is may not be directly related to the project, but I figure others could wind up in a similar pickle, and I haven't been able to find a solution...