pre-commit hook check