Issue
The pre-commit-hooks page currently shares the information on using poetry-lock plugin which has be deprecated. The poetry-check plugin instead can be used with the argument args: ["--lock"] as suggested by the following deprecation warning
poetry lock --check is deprecated, use `poetry check --lock` instead.