Skip to content

Commit fd6e5f6

Browse files
authored
Merge pull request #242 from opsmill/pog-ruff-fly
Replace static joins with f-strings
2 parents 6a4906c + badbe72 commit fd6e5f6

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

infrahub_sdk/pytest_plugin/items/graphql_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def repr_failure(self, excinfo: ExceptionInfo, style: str | None = None) -> str:
4040
)
4141

4242
if isinstance(excinfo.value, OutputMatchError):
43-
return "\n".join([excinfo.value.message, excinfo.value.differences])
43+
return f"{excinfo.value.message}\n{excinfo.value.differences}"
4444

4545
return super().repr_failure(excinfo, style=style)
4646

infrahub_sdk/pytest_plugin/items/jinja2_transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def repr_failure(self, excinfo: ExceptionInfo, style: str | None = None) -> str:
7979
return "\n".join(["Syntax error detected in the template", excinfo.value.message or ""])
8080

8181
if isinstance(excinfo.value, OutputMatchError):
82-
return "\n".join([excinfo.value.message, excinfo.value.differences])
82+
return f"{excinfo.value.message}\n{excinfo.value.differences}"
8383

8484
return super().repr_failure(excinfo, style=style)
8585

infrahub_sdk/pytest_plugin/items/python_transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def repr_failure(self, excinfo: ExceptionInfo, style: str | None = None) -> str:
6262
)
6363

6464
if isinstance(excinfo.value, OutputMatchError):
65-
return "\n".join([excinfo.value.message, excinfo.value.differences])
65+
return f"{excinfo.value.message}\n{excinfo.value.differences}"
6666

6767
return super().repr_failure(excinfo, style=style)
6868

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ ignore = [
222222
"TID", # flake8-tidy-imports
223223
"FBT", # flake8-boolean-trap
224224
"G", # flake8-logging-format
225-
"FLY", # flynt
226225
"RSE", # flake8-raise
227226
"BLE", # flake8-blind-except (BLE)
228227
"A", # flake8-builtins

0 commit comments

Comments
 (0)