PyCQA / isort

A Python utility / library to sort imports.
https://pycqa.github.io/isort/
MIT License
6.53k stars 583 forks source link

Warning deprecated stage with `pre-commit` v4 #2294

Open Rotzbua opened 1 month ago

Rotzbua commented 1 month ago

Problem

V4 of pre-commit deprecated some stages. https://github.com/pre-commit/pre-commit/releases/tag/v4.0.0

Warning output

[INFO] Initializing environment for https://github.com/pycqa/isort.
[WARNING] repo `[https://github.com/pycqa/isort`](https://github.com/pycqa/isort%60) uses deprecated stage names (commit, merge-commit, push) which will be removed in a future version.  Hint: often `pre-commit autoupdate --repo [https://github.com/pycqa/isort`](https://github.com/pycqa/isort%60) will fix this.  if it does not -- consider reporting an issue to that repo.

Reference

https://github.com/pre-commit/pre-commit/issues/2732