https://github.com/jlebar/pre-commit-hooks/blob/7954578f36f10a81b0274a672653e38e46bd99c5/.pre-commit-hooks.yaml#L32 Referencing this discussion, you can have a hook support multiple types using the types_or pre-commit key: https://github.com/pre-commit/pre-commit/pull/1677