Update pre-commit

fix for general case