validate pre-commit