add pre-commit hook that checks lint and whitespace