Addint pre-commit hook