pre-commit check