Open
Description
Issue I am facing
Bug Description
when i run pre-commit run -a
The hook isort
in .pre-commit-hooks.yaml
uses an invalid value under stages
:
stages: [pre-commit]
silution: may be we should downgrade the isort to a stable version
### Traceback to the issue
```python
[INFO] Initializing environment for https://github.com/astral-sh/ruff-pre-commit.
[INFO] Initializing environment for https://github.com/astral-sh/ruff-pre-commit:APScheduler~=3.10.4,aiolimiter~=1.1,<1.3,cachetools>=5.3.3,<5.5.0,httpx~=0.27,tornado~=6.4.
[INFO] Initializing environment for https://github.com/PyCQA/flake8.
[INFO] Initializing environment for https://github.com/PyCQA/pylint.
[INFO] Initializing environment for https://github.com/PyCQA/pylint:.,APScheduler~=3.10.4,aiolimiter~=1.1,<1.3,cachetools>=5.3.3,<5.5.0,httpx~=0.27,tornado~=6.4.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-mypy.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-mypy:.,APScheduler~=3.10.4,aiolimiter~=1.1,<1.3,cachetools>=5.3.3,<5.5.0,httpx~=0.27,tornado~=6.4,types-cachetools,types-cryptography,types-pytz.
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-mypy:.,APScheduler~=3.10.4,cachetools>=5.3.3,<5.5.0,tornado~=6.4.
[INFO] Initializing environment for https://github.com/asottile/pyupgrade.
[INFO] Initializing environment for https://github.com/pycqa/isort.
An error has occurred: InvalidManifestError:
==> File /Users/xx/.cache/pre-commit/repooacu36pw/.pre-commit-hooks.yaml
==> At Hook(id='isort')
==> At key: stages
==> At index 0
=====> Expected one of commit, commit-msg, manual, merge-commit, post-checkout, post-commit, post-merge, post-rewrite, prepare-commit-msg, push but got: 'pre-commit'
Check the log at /Users/xx/.cache/pre-commit/pre-commit.log
Related part of your code
Operating System
macos
Version of Python, python-telegram-bot & dependencies
python-telegram-bot 22.2 (v22.2-6-gcedfc99e)
Bot API 9.0
Python 3.11.5 (main, Aug 24 2023, 15:09:45) [Clang 14.0.3 (clang-1403.0.22.14.1)]