Skip to content

Commit

Permalink
Add git pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed Oct 2, 2021
1 parent 0a3e297 commit c75d7aa
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions pre-commit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh

#
# git pre-commit hook
#
# Install by:
# $ ln -s ../../pre-commit.sh .git/hooks/pre-commit
#

set -eu

unset MIX_ENV
unset MIX_TARGET

# Make a pass through the most annoying checks to fail on CI
mix format --check-formatted
mix deps.unlock --check-unused
mix docs
mix hex.build
mix credo -a

0 comments on commit c75d7aa

Please sign in to comment.