From d7052415c9f8471b70d9a61a43e2795408b35991 Mon Sep 17 00:00:00 2001 From: Ben Church Date: Mon, 13 Mar 2023 14:54:54 -0700 Subject: [PATCH] Apply flake8 fixes --- .../orchestrator/orchestrator/assets/catalog_assets.py | 10 +++++----- .../orchestrator/resources/gcp_resources.py | 2 +- .../orchestrator/orchestrator/test/test_catalog.py | 2 -- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/airbyte-ci/connectors_ci/metadata_service/orchestrator/orchestrator/assets/catalog_assets.py b/airbyte-ci/connectors_ci/metadata_service/orchestrator/orchestrator/assets/catalog_assets.py index ae78ad574b0d..f87af6ab3386 100644 --- a/airbyte-ci/connectors_ci/metadata_service/orchestrator/orchestrator/assets/catalog_assets.py +++ b/airbyte-ci/connectors_ci/metadata_service/orchestrator/orchestrator/assets/catalog_assets.py @@ -20,9 +20,9 @@ def connector_catalog_location_html(context, all_destinations_dataframe, all_sou title = "Connector Catalogs" content = f"

{title}

" - content += f"

Sources

" + content += "

Sources

" content += all_sources_dataframe[columns_to_show].to_html() - content += f"

Destinations

" + content += "

Destinations

" content += all_destinations_dataframe[columns_to_show].to_html() html = html_body(title, content) @@ -49,10 +49,10 @@ def connector_catalog_location_markdown(context, all_destinations_dataframe, all all_sources_dataframe.replace({True: "✅", False: "❌"}, inplace=True) all_destinations_dataframe.replace({True: "✅", False: "❌"}, inplace=True) - markdown = f"# Connector Catalog Locations\n\n" - markdown += f"## Sources\n" + markdown = "# Connector Catalog Locations\n\n" + markdown += "## Sources\n" markdown += all_sources_dataframe[columns_to_show].to_markdown() - markdown += f"\n\n## Destinations\n" + markdown += "\n\n## Destinations\n" markdown += all_destinations_dataframe[columns_to_show].to_markdown() catalog_report_directory_manager = context.resources.catalog_report_directory_manager diff --git a/airbyte-ci/connectors_ci/metadata_service/orchestrator/orchestrator/resources/gcp_resources.py b/airbyte-ci/connectors_ci/metadata_service/orchestrator/orchestrator/resources/gcp_resources.py index a177764868e2..cd1602575e7e 100644 --- a/airbyte-ci/connectors_ci/metadata_service/orchestrator/orchestrator/resources/gcp_resources.py +++ b/airbyte-ci/connectors_ci/metadata_service/orchestrator/orchestrator/resources/gcp_resources.py @@ -3,7 +3,7 @@ from google.cloud import storage from google.oauth2 import service_account -from dagster import StringSource, InitResourceContext, resource, InitResourceContext +from dagster import StringSource, InitResourceContext, resource from dagster_gcp.gcs.file_manager import GCSFileManager diff --git a/airbyte-ci/connectors_ci/metadata_service/orchestrator/orchestrator/test/test_catalog.py b/airbyte-ci/connectors_ci/metadata_service/orchestrator/orchestrator/test/test_catalog.py index 3346a66ff3df..323c0e60e3f8 100644 --- a/airbyte-ci/connectors_ci/metadata_service/orchestrator/orchestrator/test/test_catalog.py +++ b/airbyte-ci/connectors_ci/metadata_service/orchestrator/orchestrator/test/test_catalog.py @@ -7,8 +7,6 @@ cloud_destinations_dataframe, oss_sources_dataframe, cloud_sources_dataframe, - latest_oss_catalog_dict, - latest_cloud_catalog_dict, all_sources_dataframe, all_destinations_dataframe, )