Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 11, 2024
1 parent 4d7e0dc commit 3007e76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion surfactant/cmd/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ def construct_relationship_graph(sbom: SBOM):
# iterate through all relationships, adding edges to the adjacency list
for rel in sbom.relationships:
if rel.xUUID not in rel_graph or rel.yUUID not in rel_graph:
logger.error(f"Either the xUUID or yUUID for the relationship does not exist in the graph: {rel = }")
logger.error(
f"Either the xUUID or yUUID for the relationship does not exist in the graph: {rel = }"
)
continue
# consider also including relationship type for the edge
# treat as directed graph, with inverted edges (pointing to parents) so dfs will eventually lead to the root parent node for a (sub)graph
Expand Down

0 comments on commit 3007e76

Please sign in to comment.