From 9a1cfbf019e5b4c48708cac07a5ddad264107d44 Mon Sep 17 00:00:00 2001 From: johnathan-rodriguez Date: Tue, 4 Feb 2025 14:38:48 -0500 Subject: [PATCH] Formatted with black --- shipyard_blueprints/asana/shipyard_asana/cli/create_task.py | 6 +++--- shipyard_blueprints/asana/shipyard_asana/cli/edit_task.py | 6 +++--- .../shipyard_magnite/cli/update_single_campaign_budget.py | 1 - shipyard_blueprints/magnite/shipyard_magnite/utils.py | 1 - .../postgres_legacy/postgres_legacy/cli/execute_query.py | 6 +++--- .../postgres_legacy/cli/store_query_results.py | 6 +++--- 6 files changed, 12 insertions(+), 14 deletions(-) diff --git a/shipyard_blueprints/asana/shipyard_asana/cli/create_task.py b/shipyard_blueprints/asana/shipyard_asana/cli/create_task.py index c2f0d7ed..ec662c89 100644 --- a/shipyard_blueprints/asana/shipyard_asana/cli/create_task.py +++ b/shipyard_blueprints/asana/shipyard_asana/cli/create_task.py @@ -54,9 +54,9 @@ def main(): logger = get_logger() args = get_args() client = asana.Client.access_token(args.access_token) - client.headers["Asana-Disable"] = ( - "new_user_task_lists,new_goal_memberships" # suppress warnings - ) + client.headers[ + "Asana-Disable" + ] = "new_user_task_lists,new_goal_memberships" # suppress warnings workspace_id = args.workspace_id project_id = args.project_id name = args.name diff --git a/shipyard_blueprints/asana/shipyard_asana/cli/edit_task.py b/shipyard_blueprints/asana/shipyard_asana/cli/edit_task.py index b2b0ac6e..4c70370b 100644 --- a/shipyard_blueprints/asana/shipyard_asana/cli/edit_task.py +++ b/shipyard_blueprints/asana/shipyard_asana/cli/edit_task.py @@ -58,9 +58,9 @@ def main(): logger = get_logger() client = asana.Client.access_token(args.access_token) - client.headers["Asana-Disable"] = ( - "new_user_task_lists,new_goal_memberships" # suppress warnings - ) + client.headers[ + "Asana-Disable" + ] = "new_user_task_lists,new_goal_memberships" # suppress warnings params = {} if args.name != "": params["name"] = args.name diff --git a/shipyard_blueprints/magnite/shipyard_magnite/cli/update_single_campaign_budget.py b/shipyard_blueprints/magnite/shipyard_magnite/cli/update_single_campaign_budget.py index bc507ce8..b3288cd3 100644 --- a/shipyard_blueprints/magnite/shipyard_magnite/cli/update_single_campaign_budget.py +++ b/shipyard_blueprints/magnite/shipyard_magnite/cli/update_single_campaign_budget.py @@ -100,7 +100,6 @@ def main(): ) ) else: - successful.append( ValidationResult( status="Success", diff --git a/shipyard_blueprints/magnite/shipyard_magnite/utils.py b/shipyard_blueprints/magnite/shipyard_magnite/utils.py index 9d68396b..be8e5e3e 100644 --- a/shipyard_blueprints/magnite/shipyard_magnite/utils.py +++ b/shipyard_blueprints/magnite/shipyard_magnite/utils.py @@ -77,7 +77,6 @@ def transform_data_to_budgets(raw_data): def log_campaign_report(reports, errors, description): - if len(reports) - len(errors) > 0: logger.info(f"======= Reports for Successful {description}(s) =======") for report in reports: diff --git a/shipyard_blueprints/postgres_legacy/postgres_legacy/cli/execute_query.py b/shipyard_blueprints/postgres_legacy/postgres_legacy/cli/execute_query.py index 6dffeac3..7dd318e1 100644 --- a/shipyard_blueprints/postgres_legacy/postgres_legacy/cli/execute_query.py +++ b/shipyard_blueprints/postgres_legacy/postgres_legacy/cli/execute_query.py @@ -47,9 +47,9 @@ def create_connection_string(args): if args.db_connection_url: os.environ["DB_CONNECTION_URL"] = args.db_connection_url elif args.host and args.database: - os.environ["DB_CONNECTION_URL"] = ( - f"postgresql://{args.username}:{args.password}@{args.host}:{args.port}/{args.database}?{args.url_parameters}" - ) + os.environ[ + "DB_CONNECTION_URL" + ] = f"postgresql://{args.username}:{args.password}@{args.host}:{args.port}/{args.database}?{args.url_parameters}" db_string = os.environ.get("DB_CONNECTION_URL") return db_string diff --git a/shipyard_blueprints/postgres_legacy/postgres_legacy/cli/store_query_results.py b/shipyard_blueprints/postgres_legacy/postgres_legacy/cli/store_query_results.py index 22ac1bd9..9fa24a7c 100644 --- a/shipyard_blueprints/postgres_legacy/postgres_legacy/cli/store_query_results.py +++ b/shipyard_blueprints/postgres_legacy/postgres_legacy/cli/store_query_results.py @@ -60,9 +60,9 @@ def create_connection_string(args): if args.db_connection_url: os.environ["DB_CONNECTION_URL"] = args.db_connection_url elif args.host and args.database: - os.environ["DB_CONNECTION_URL"] = ( - f"postgresql://{args.username}:{args.password}@{args.host}:{args.port}/{args.database}?{args.url_parameters}" - ) + os.environ[ + "DB_CONNECTION_URL" + ] = f"postgresql://{args.username}:{args.password}@{args.host}:{args.port}/{args.database}?{args.url_parameters}" db_string = os.environ.get("DB_CONNECTION_URL") return db_string