@@ -305,7 +305,7 @@ def get_downstream_artifacts_by_artifact_ids(
305305 if store is None :
306306 raise ValueError ('MetadataStore provided to MetadataResolver is None.' )
307307
308- artifact_ids_str = ',' .join (str (id ) for id in artifact_ids )
308+ artifact_ids_str = ',' .join (str (id ) for id in artifact_ids ) # noqa: A001
309309 # If `max_num_hops` is set to 0, we don't need the graph traversal.
310310 if max_num_hops == 0 :
311311 if not filter_query :
@@ -370,7 +370,7 @@ def get_downstream_artifacts_by_artifact_ids(
370370 candidate_artifact_ids .update (
371371 visited_ids [metadata_resolver_utils .NodeType .ARTIFACT ]
372372 )
373- artifact_ids_str = ',' .join (str (id ) for id in candidate_artifact_ids )
373+ artifact_ids_str = ',' .join (str (id ) for id in candidate_artifact_ids ) # noqa: A001
374374 # Send a call to metadata_store to get filtered downstream artifacts.
375375 artifacts = store .get_artifacts (
376376 list_options = mlmd .ListOptions (
@@ -387,7 +387,7 @@ def get_downstream_artifacts_by_artifact_ids(
387387 artifact_id_to_artifact [id ],
388388 artifact_type_by_id [artifact_id_to_artifact [id ].type_id ],
389389 )
390- for id in visited_ids [metadata_resolver_utils .NodeType .ARTIFACT ]
390+ for id in visited_ids [metadata_resolver_utils .NodeType .ARTIFACT ] # noqa: A001
391391 if id in artifact_id_to_artifact
392392 ]
393393 if downstream_artifacts :
@@ -594,7 +594,7 @@ def get_upstream_artifacts_by_artifact_ids(
594594 if store is None :
595595 raise ValueError ('MetadataStore provided to MetadataResolver is None.' )
596596
597- artifact_ids_str = ',' .join (str (id ) for id in artifact_ids )
597+ artifact_ids_str = ',' .join (str (id ) for id in artifact_ids ) # noqa: A001
598598 # If `max_num_hops` is set to 0, we don't need the graph traversal.
599599 if max_num_hops == 0 :
600600 if not filter_query :
@@ -662,7 +662,7 @@ def get_upstream_artifacts_by_artifact_ids(
662662 candidate_artifact_ids .update (
663663 visited_ids [metadata_resolver_utils .NodeType .ARTIFACT ]
664664 )
665- artifact_ids_str = ',' .join (str (id ) for id in candidate_artifact_ids )
665+ artifact_ids_str = ',' .join (str (id ) for id in candidate_artifact_ids ) # noqa: A001
666666 # Send a call to metadata_store to get filtered upstream artifacts.
667667 artifacts = store .get_artifacts (
668668 list_options = mlmd .ListOptions (
@@ -679,7 +679,7 @@ def get_upstream_artifacts_by_artifact_ids(
679679 artifact_id_to_artifact [id ],
680680 artifact_type_by_id [artifact_id_to_artifact [id ].type_id ],
681681 )
682- for id in visited_ids [metadata_resolver_utils .NodeType .ARTIFACT ]
682+ for id in visited_ids [metadata_resolver_utils .NodeType .ARTIFACT ] # noqa: A001
683683 if id in artifact_id_to_artifact
684684 ]
685685 if upstream_artifacts :
0 commit comments