8000 The hook `isort` in `.pre-commit-hooks.yaml` seems use an invalid value under `stages` · Issue #4856 · python-telegram-bot/python-telegram-bot · GitHub
[go: up one dir, main page]

Skip to content
The hook isort in .pre-commit-hooks.yaml seems use an invalid value under stages #4856
New issue< 98E9 /div>
@fengxiaohu

Description

@fengxiaohu

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)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0