Fix pre-commit hook to not use -P.