add local check for customized pre-commit checking