diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 70e9703..ad04e85 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: hooks: - id: flake8 - repo: https://github.com/PyCQA/pylint - rev: v3.3.9 + rev: v4.0.2 hooks: - id: pylint args: @@ -45,13 +45,13 @@ repos: - gql[aiohttp]~=3.5.0 - async-lru~=1.0.3 - repo: https://github.com/asottile/pyupgrade - rev: v3.20.0 + rev: v3.21.0 hooks: - id: pyupgrade args: - --py36-plus - repo: https://github.com/pycqa/isort - rev: 6.1.0 + rev: 7.0.0 hooks: - id: isort name: isort diff --git a/components/taghints.py b/components/taghints.py index 64bd1b3..5c91db2 100644 --- a/components/taghints.py +++ b/components/taghints.py @@ -302,7 +302,7 @@ # Sort the hints by key -_TAG_HINTS = dict(sorted(_TAG_HINTS.items())) +_TAG_HINTS_SORTED = dict(sorted(_TAG_HINTS.items())) # convert into proper objects TAG_HINTS: Dict[str, TagHint] = { key: TagHint( @@ -313,7 +313,7 @@ inline_keyboard=InlineKeyboardMarkup(value["buttons"]) if "buttons" in value else None, group_command=value.get("group_command", False), ) - for key, value in _TAG_HINTS.items() + for key, value in _TAG_HINTS_SORTED.items() } TAG_HINTS_PATTERN = re.compile( # case insensitive