From 61d3da831b6e25752c1a4804d4d736fe6bab7fcc Mon Sep 17 00:00:00 2001 From: Maximilian Schulz Date: Thu, 17 Oct 2024 18:04:36 +0200 Subject: [PATCH] Linting --- tools/pycafe/create_pycafe_links.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/pycafe/create_pycafe_links.py b/tools/pycafe/create_pycafe_links.py index 4471aef03..a2176a913 100644 --- a/tools/pycafe/create_pycafe_links.py +++ b/tools/pycafe/create_pycafe_links.py @@ -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 @@ -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__": @@ -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)