Skip to content

Commit bc15c81

Browse files
committed
Fix formatting
I think this is due to a ruff update. This PR should make these sort of changes easier to separate out.
1 parent d6ad41a commit bc15c81

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/labthings_fastapi/actions/invocation_model.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ def generate_message(cls, data: Any):
4343
# it will cause 500 errors when retrieving
4444
# the invocation.
4545
# This way, you can find and fix the source.
46-
data.message = (
47-
f"Error constructing message ({e}) " f"from {data!r}."
48-
)
46+
data.message = f"Error constructing message ({e}) from {data!r}."
4947
return data
5048

5149

src/labthings_fastapi/thing_description/validation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def validate_thing_description(td: dict) -> None:
2727
jsonschema.validate(instance=td, schema=schema)
2828
validated_td = time.time()
2929
logging.info(
30-
f"Thing Description validated OK (schema load: {loaded_schema-start:.1f}s, "
31-
f"schema validation: {validated_schema-loaded_schema:.1f}s, TD validation: "
32-
f"{validated_td-validated_schema:.1f}s)"
30+
f"Thing Description validated OK (schema load: {loaded_schema - start:.1f}s, "
31+
f"schema validation: {validated_schema - loaded_schema:.1f}s, TD validation: "
32+
f"{validated_td - validated_schema:.1f}s)"
3333
)

0 commit comments

Comments
 (0)