Skip to content

Commit

Permalink
ruff formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
austinweisgrau committed Sep 18, 2024
1 parent da4a67a commit 4b99f94
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions parsons/utilities/dbt/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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}*"
Expand Down Expand Up @@ -162,7 +162,6 @@ def send(self, manifests: list[Manifest]) -> None:


class dbtLoggerSlack(dbtLoggerMarkdown):

def __init__(
self,
slack_webhook: str,
Expand Down

0 comments on commit 4b99f94

Please sign in to comment.