@@ -305,7 +305,7 @@ def get_downstream_artifacts_by_artifact_ids(
305
305
if store is None :
306
306
raise ValueError ('MetadataStore provided to MetadataResolver is None.' )
307
307
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
309
309
# If `max_num_hops` is set to 0, we don't need the graph traversal.
310
310
if max_num_hops == 0 :
311
311
if not filter_query :
@@ -370,7 +370,7 @@ def get_downstream_artifacts_by_artifact_ids(
370
370
candidate_artifact_ids .update (
371
371
visited_ids [metadata_resolver_utils .NodeType .ARTIFACT ]
372
372
)
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
374
374
# Send a call to metadata_store to get filtered downstream artifacts.
375
375
artifacts = store .get_artifacts (
376
376
list_options = mlmd .ListOptions (
@@ -387,7 +387,7 @@ def get_downstream_artifacts_by_artifact_ids(
387
387
artifact_id_to_artifact [id ],
388
388
artifact_type_by_id [artifact_id_to_artifact [id ].type_id ],
389
389
)
390
- for id in visited_ids [metadata_resolver_utils .NodeType .ARTIFACT ]
390
+ for id in visited_ids [metadata_resolver_utils .NodeType .ARTIFACT ] # noqa: A001
391
391
if id in artifact_id_to_artifact
392
392
]
393
393
if downstream_artifacts :
@@ -594,7 +594,7 @@ def get_upstream_artifacts_by_artifact_ids(
594
594
if store is None :
595
595
raise ValueError ('MetadataStore provided to MetadataResolver is None.' )
596
596
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
598
598
# If `max_num_hops` is set to 0, we don't need the graph traversal.
599
599
if max_num_hops == 0 :
600
600
if not filter_query :
@@ -662,7 +662,7 @@ def get_upstream_artifacts_by_artifact_ids(
662
662
candidate_artifact_ids .update (
663
663
visited_ids [metadata_resolver_utils .NodeType .ARTIFACT ]
664
664
)
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
666
666
# Send a call to metadata_store to get filtered upstream artifacts.
667
667
artifacts = store .get_artifacts (
668
668
list_options = mlmd .ListOptions (
@@ -679,7 +679,7 @@ def get_upstream_artifacts_by_artifact_ids(
679
679
artifact_id_to_artifact [id ],
680
680
artifact_type_by_id [artifact_id_to_artifact [id ].type_id ],
681
681
)
682
- for id in visited_ids [metadata_resolver_utils .NodeType .ARTIFACT ]
682
+ for id in visited_ids [metadata_resolver_utils .NodeType .ARTIFACT ] # noqa: A001
683
683
if id in artifact_id_to_artifact
684
684
]
685
685
if upstream_artifacts :
0 commit comments