Skip to content

Commit

Permalink
style(black): run black deployer/src
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Jan 10, 2025
1 parent aa3990b commit acc99ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deployer/src/deployer/analyze_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,10 @@ def post_about_dangerous_content(
count = external_urls[url]
# Avoid GitHub mentions.
original_url = url
url = url.replace('https://github.com/', 'https://redirect.github.com/')
link = f"<{url}>" if url == original_url else f"[{original_url}](<{url}>)"
url = url.replace("https://github.com/", "https://redirect.github.com/")
link = (
f"<{url}>" if url == original_url else f"[{original_url}](<{url}>)"
)
line = (
f" - {'🚨 ' if url.startswith('http://') else ''}"
f"{link} ({count} time{'' if count == 1 else 's'})"
Expand Down

0 comments on commit acc99ed

Please sign in to comment.