From 4e4e3f536feb866a40a62ec2c5aa88ac548d2931 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 1 Jun 2026 13:35:58 +0000 Subject: [PATCH 1/2] Initial plan From ad86f634624d6f47d8c47cc5b553801a02657e7e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 1 Jun 2026 13:54:33 +0000 Subject: [PATCH 2/2] fix: resolve EM102 in models and unsuppress rule --- pyproject.toml | 1 - src/seclab_taskflow_agent/models.py | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 73914157..3874f6f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -182,7 +182,6 @@ extend-exclude = ["src/seclab_taskflow_agent/mcp_servers/codeql/jsonrpyc/"] ignore = [ # Style choices — deliberate project conventions "EM101", # Exception string literals - "EM102", # Exception f-strings "G004", # Logging f-strings "T201", # print() used for user output "TRY003", # Raise with inline message strings diff --git a/src/seclab_taskflow_agent/models.py b/src/seclab_taskflow_agent/models.py index eff05ee6..22c4d692 100644 --- a/src/seclab_taskflow_agent/models.py +++ b/src/seclab_taskflow_agent/models.py @@ -66,9 +66,8 @@ def _normalise_version(cls, v: Any) -> str: @classmethod def _validate_version(cls, v: str) -> str: if v != SUPPORTED_VERSION: - raise ValueError( - f"Unsupported version: {v}. Only version {SUPPORTED_VERSION} is supported." - ) + msg = f"Unsupported version: {v}. Only version {SUPPORTED_VERSION} is supported." + raise ValueError(msg) return v