add linting pre-commit hook