From 269dce56ff5f543778a4a9ad274bdfaf6bf5a8b9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 09:06:00 +0000 Subject: [PATCH 1/3] Update dependency updates --- .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 a896c3b..20dae75 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -143,7 +143,7 @@ repos: - --fix - --python=.venv/ additional_dependencies: - - ty==0.0.38 + - ty==0.0.39 types: - python - repo: https://github.com/asottile/pyupgrade @@ -162,7 +162,7 @@ repos: hooks: - id: actionlint - repo: https://github.com/crate-ci/typos - rev: v1.46.2 + rev: v1.46.3 hooks: - id: typos exclude_types: @@ -192,7 +192,7 @@ repos: hooks: - id: shfmt - repo: https://github.com/ewhauser/shuck - rev: v0.0.40 + rev: v0.0.41 hooks: - id: shuck args: From e429782163e4254844fda87483e976ddc26c13e8 Mon Sep 17 00:00:00 2001 From: Markus Hofbauer Date: Mon, 1 Jun 2026 11:17:29 +0200 Subject: [PATCH 2/3] Apply suggestion from @hofbi --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 20dae75..7065a88 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -192,7 +192,7 @@ repos: hooks: - id: shfmt - repo: https://github.com/ewhauser/shuck - rev: v0.0.41 + rev: v0.0.40 hooks: - id: shuck args: From f22d72d720ac3409e9bac70522fda1306b1e8a30 Mon Sep 17 00:00:00 2001 From: Markus Hofbauer Date: Mon, 1 Jun 2026 12:41:04 +0200 Subject: [PATCH 3/3] fix ty error --- dev_tools/check_jira_reference_in_todo.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/dev_tools/check_jira_reference_in_todo.py b/dev_tools/check_jira_reference_in_todo.py index d64380a..e97a6b9 100644 --- a/dev_tools/check_jira_reference_in_todo.py +++ b/dev_tools/check_jira_reference_in_todo.py @@ -5,7 +5,7 @@ import re import sys -from typing import TYPE_CHECKING +from typing import TYPE_CHECKING, TypedDict from dev_tools.utils.git_hook_utils import parse_arguments @@ -14,6 +14,14 @@ from pathlib import Path +class IncorrectTodo(TypedDict): + """Incorrect Todo.""" + + file_path: Path + line_number: int + line_content: str + + def line_has_incorrect_todo(line: str) -> bool: return ( not re.compile(r"^.*(?=TODO\([A-Z]+\-[0-9]+\)\:).*").search(line) @@ -22,8 +30,8 @@ def line_has_incorrect_todo(line: str) -> bool: ) -def find_files_with_incorrect_jira_reference_in_todo(files: list[Path]) -> list[dict[str, object]]: - incorrect_files = [] +def find_files_with_incorrect_jira_reference_in_todo(files: list[Path]) -> list[IncorrectTodo]: + incorrect_files: list[IncorrectTodo] = [] for file in files: lines = file.read_text(errors="ignore").splitlines() for line_number, line in enumerate(lines, 1):