Fix pre-commit hook