pre-push git hook: interactive format && credo
A pre_push
hook which …
-
checks if your files are formatted (
mix format –check-formatted
) - if not, prompts you if you want to format them now
- prompts if you want to run credo
- prompts you if you want to abort the push if any of the previous steps failed
https://gist.github.com/Zeeker/c63ba089fd732a359e64d7a556964d8b
Read next How we're combining Elixir and GraphQL at @Stuart_Delivery 🚀