Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
maxschulz-COL committed Oct 17, 2024
1 parent a5977ad commit 61d3da8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/pycafe/create_pycafe_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@


def generate_link(directory: str, extra_requirements: Optional[list[str]] = None):
"""Generate a PyCafe link for the example dashboards."""
base_url = f"https://raw.githubusercontent.com/mckinsey/vizro/{commit_sha}/vizro-core/{directory}"

# Requirements
Expand Down Expand Up @@ -103,10 +104,10 @@ def post_comment(urls: list[tuple[str, str]]):
# Update the existing comment or create a new one
if bot_comment:
bot_comment.edit(comment_body)
print("Comment updated on the pull request.")
print("Comment updated on the pull request.") # noqa
else:
pr.create_issue_comment(comment_body)
print("Comment added to the pull request.")
print("Comment added to the pull request.") # noqa


if __name__ == "__main__":
Expand All @@ -128,7 +129,7 @@ def post_comment(urls: list[tuple[str, str]]):

# Create the status on the commit
commit.create_status(state=state, target_url=url, description=description, context=context)
print(f"Status created for {context} with URL: {url}")
print(f"Status created for {context} with URL: {url}") # noqa

# Post the comment with the links
post_comment(urls)

0 comments on commit 61d3da8

Please sign in to comment.