From d88403189ba63ff025c5aa21dc6d82c1d85aa11f Mon Sep 17 00:00:00 2001 From: Pavel Tisnovsky Date: Mon, 9 Mar 2026 11:14:00 +0100 Subject: [PATCH 1/2] Enable new linter rule --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 758208691..5f60d4351 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -223,7 +223,7 @@ disable = ["R0801"] extend-exclude = ["tests/profiles/syntax_error.py"] [tool.ruff.lint] -extend-select = ["TID251", "UP006", "UP007", "UP017", "UP035", "RUF100"] +extend-select = ["TID251", "UP006", "UP007", "UP017", "UP035", "RUF100", "B010"] [tool.ruff.lint.flake8-tidy-imports.banned-api] unittest = { msg = "use pytest instead of unittest" } From 98e0fa010b3f513af92fa37245990c03db35efb5 Mon Sep 17 00:00:00 2001 From: Pavel Tisnovsky Date: Mon, 9 Mar 2026 11:14:10 +0100 Subject: [PATCH 2/2] Fixed B010 issue in tests --- tests/unit/utils/test_responses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/utils/test_responses.py b/tests/unit/utils/test_responses.py index 0f9d81632..54ae158aa 100644 --- a/tests/unit/utils/test_responses.py +++ b/tests/unit/utils/test_responses.py @@ -61,7 +61,7 @@ def __init__( content: Any = None, ) -> None: # Use setattr to avoid conflict with built-in 'type' - setattr(self, "type", item_type) + self.type = item_type self.role = role self.content = content