Skip to content

Commit 5a2ed27

Browse files
committed
Apply auto-formatting rules
1 parent 2479dcc commit 5a2ed27

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

catalogue_graph/src/models/catalogue_concept.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def from_neptune_result(cls, data: dict) -> "CatalogueConcept":
3838
for source_concept in data["linked_source_concepts"]:
3939
properties = source_concept["~properties"]
4040
source = properties["source"]
41-
41+
4242
labels[source] = properties.get("label")
4343
identifiers.append(
4444
CatalogueConceptIdentifier(
@@ -56,7 +56,7 @@ def from_neptune_result(cls, data: dict) -> "CatalogueConcept":
5656
properties = source_concept["~properties"]
5757
source = properties["source"]
5858
descriptions[source] = properties.get("description")
59-
59+
6060
return CatalogueConcept(
6161
id=data["concept"]["~properties"]["id"],
6262
type=data["concept"]["~properties"]["type"],

catalogue_graph/tests/models/test_catalogue_concept.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def test_catalogue_concept_from_neptune_result() -> None:
1111
"source": "lc-subjects",
1212
"alternative_labels": "alternativeLabels||moreAlternativeLabels",
1313
"description": "description",
14-
"label": "Priority label"
14+
"label": "Priority label",
1515
}
1616
},
1717
{
@@ -21,7 +21,7 @@ def test_catalogue_concept_from_neptune_result() -> None:
2121
"alternative_labels": "invisibleAlternativeLabel",
2222
"description": "Non-priority description",
2323
}
24-
}
24+
},
2525
],
2626
"linked_source_concepts": [
2727
{
@@ -30,7 +30,7 @@ def test_catalogue_concept_from_neptune_result() -> None:
3030
"source": "lc-subjects",
3131
"alternative_labels": "alternativeLabels||moreAlternativeLabels",
3232
"description": "description",
33-
"label": "Priority label"
33+
"label": "Priority label",
3434
}
3535
}
3636
],
@@ -74,7 +74,7 @@ def test_catalogue_concept_from_neptune_result_without_alternative_labels() -> N
7474
"description": "description",
7575
}
7676
}
77-
],
77+
],
7878
}
7979

8080
assert CatalogueConcept.from_neptune_result(neptune_result) == CatalogueConcept(

catalogue_graph/tests/test_ingestor_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def build_test_matrix() -> list[tuple]:
110110
"description": "description",
111111
}
112112
}
113-
],
113+
],
114114
}
115115
]
116116
},

0 commit comments

Comments
 (0)