diff --git a/infrahub_sdk/pytest_plugin/items/graphql_query.py b/infrahub_sdk/pytest_plugin/items/graphql_query.py index 3e196ac..769880b 100644 --- a/infrahub_sdk/pytest_plugin/items/graphql_query.py +++ b/infrahub_sdk/pytest_plugin/items/graphql_query.py @@ -40,7 +40,7 @@ def repr_failure(self, excinfo: ExceptionInfo, style: str | None = None) -> str: ) if isinstance(excinfo.value, OutputMatchError): - return "\n".join([excinfo.value.message, excinfo.value.differences]) + return f"{excinfo.value.message}\n{excinfo.value.differences}" return super().repr_failure(excinfo, style=style) diff --git a/infrahub_sdk/pytest_plugin/items/jinja2_transform.py b/infrahub_sdk/pytest_plugin/items/jinja2_transform.py index 48497c0..a5bba09 100644 --- a/infrahub_sdk/pytest_plugin/items/jinja2_transform.py +++ b/infrahub_sdk/pytest_plugin/items/jinja2_transform.py @@ -79,7 +79,7 @@ def repr_failure(self, excinfo: ExceptionInfo, style: str | None = None) -> str: return "\n".join(["Syntax error detected in the template", excinfo.value.message or ""]) if isinstance(excinfo.value, OutputMatchError): - return "\n".join([excinfo.value.message, excinfo.value.differences]) + return f"{excinfo.value.message}\n{excinfo.value.differences}" return super().repr_failure(excinfo, style=style) diff --git a/infrahub_sdk/pytest_plugin/items/python_transform.py b/infrahub_sdk/pytest_plugin/items/python_transform.py index b597bed..a030f8a 100644 --- a/infrahub_sdk/pytest_plugin/items/python_transform.py +++ b/infrahub_sdk/pytest_plugin/items/python_transform.py @@ -62,7 +62,7 @@ def repr_failure(self, excinfo: ExceptionInfo, style: str | None = None) -> str: ) if isinstance(excinfo.value, OutputMatchError): - return "\n".join([excinfo.value.message, excinfo.value.differences]) + return f"{excinfo.value.message}\n{excinfo.value.differences}" return super().repr_failure(excinfo, style=style) diff --git a/pyproject.toml b/pyproject.toml index 646a276..4a9d8b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -222,7 +222,6 @@ ignore = [ "TID", # flake8-tidy-imports "FBT", # flake8-boolean-trap "G", # flake8-logging-format - "FLY", # flynt "RSE", # flake8-raise "BLE", # flake8-blind-except (BLE) "A", # flake8-builtins