Forward-compatibility shim for pre-commit

Forward-compatibility shim for pre-commit