From 838d99787d99a60a3165197e320b506557e14a1f Mon Sep 17 00:00:00 2001 From: Austin Weisgrau Date: Thu, 22 Aug 2024 15:27:17 -0700 Subject: [PATCH] ruff formatting --- parsons/utilities/dbt/logging.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/parsons/utilities/dbt/logging.py b/parsons/utilities/dbt/logging.py index 8feb04956c..267b3f4a18 100644 --- a/parsons/utilities/dbt/logging.py +++ b/parsons/utilities/dbt/logging.py @@ -72,13 +72,13 @@ def format_command_result( # Header if manifest.errors: - log_message += "\U0001F534" # Red box + log_message += "\U0001f534" # Red box status = "Error" elif manifest.warnings: - log_message += "\U0001F7E0" # Orange circle + log_message += "\U0001f7e0" # Orange circle status = "Warning" else: - log_message += "\U0001F7E2" # Green circle + log_message += "\U0001f7e2" # Green circle status = "Success" time_str = human_readable_duration(manifest.elapsed_time) @@ -121,10 +121,10 @@ def format_result(self) -> str: # Header if any([command.errors for command in self.commands]): status = "failed" - full_log_message += "\U0001F534" + full_log_message += "\U0001f534" else: status = "succeeded" - full_log_message += "\U0001F7E2" + full_log_message += "\U0001f7e2" now = datetime.datetime.today().strftime("%Y-%m-%d %H:%M") full_log_message += f"*dbt run {status} - {now}*" @@ -162,7 +162,6 @@ def send(self, manifests: list[Manifest]) -> None: class dbtLoggerSlack(dbtLoggerMarkdown): - def __init__( self, slack_webhook: str,