See discussion here
pre-commit/pre-commit#3577
j178/prek#1070
This is an especially difficult deprecation to deal with, because the new aliases are only available for v4.4.0. Usethis will need to use some sort of method to infer the pre-commit version. There's multiple places we can look for this:
- The
pre-commit --version command, outputting in the format pre-commit 4.4.0
- The minimum supported version field in the YAML config
- Any pyproject.toml/dependency declaration for the lower bound
- Any lockfile