From 5c9391ea5d5bddb18df859f815f7cbfbcb50a1c7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Nov 2025 21:10:44 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/PyCQA/pylint: v3.3.9 → v4.0.2](https://github.com/PyCQA/pylint/compare/v3.3.9...v4.0.2) - [github.com/asottile/pyupgrade: v3.20.0 → v3.21.0](https://github.com/asottile/pyupgrade/compare/v3.20.0...v3.21.0) - [github.com/pycqa/isort: 6.1.0 → 7.0.0](https://github.com/pycqa/isort/compare/6.1.0...7.0.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 From bd8fc6ed67b56f3e4d4031a0376d91ae064d6a5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Mart=C3=ADnez?= <58857054+elpekenin@users.noreply.github.com> Date: Thu, 6 Nov 2025 16:38:17 +0100 Subject: [PATCH 2/2] fix lint error (#159) --- components/taghints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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