Skip to content

Instantly share code, notes, and snippets.

@denispeplin
Created October 1, 2018 11:23
Show Gist options
  • Save denispeplin/e30a7c042353722b48069383ac4d76e0 to your computer and use it in GitHub Desktop.
Save denispeplin/e30a7c042353722b48069383ac4d76e0 to your computer and use it in GitHub Desktop.
mix format pre-commit hook
#!/bin/sh
#
# Place in .git/hooks and make executable
MIX_LOCATION=mix
cd `git rev-parse --show-toplevel`
$MIX_LOCATION format --check-formatted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment