Added pre-commit hook to repo

Put the pre-commit hook that I use in the git repo just so I don't need
to duplicate it in the future.