From 407e1677f18057020256564f288a43d80a8c881d Mon Sep 17 00:00:00 2001 From: Maximilian Schulz <83698606+maxschulz-COL@users.noreply.github.com> Date: Mon, 28 Oct 2024 19:25:37 +0100 Subject: [PATCH] [CI] Final check PR (#833) --- tools/pycafe/create_pycafe_links.py | 14 ++++++-------- vizro-core/examples/scratch_dev/app.py | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/tools/pycafe/create_pycafe_links.py b/tools/pycafe/create_pycafe_links.py index 604e31316..0b7bcce15 100644 --- a/tools/pycafe/create_pycafe_links.py +++ b/tools/pycafe/create_pycafe_links.py @@ -10,6 +10,7 @@ from typing import Optional from urllib.parse import quote, urlencode +import requests import vizro from github import Auth, Github @@ -56,17 +57,14 @@ def generate_link(directory: str, extra_requirements: Optional[list[str]] = None # Requirements requirements = "\n".join( - filter( - None, - [ - f"{PYCAFE_URL}/gh/artifact/mckinsey/vizro/actions/runs/{RUN_ID}/pip/vizro-{PACKAGE_VERSION}-py3-none-any.whl", - *(extra_requirements or []), - ], - ) + [ + f"{PYCAFE_URL}/gh/artifact/mckinsey/vizro/actions/runs/{RUN_ID}/pip/vizro-{PACKAGE_VERSION}-py3-none-any.whl", + *(extra_requirements or []), + ] ) # App file - app_content = Path(directory, "app.py").read_text() + app_content = requests.get(f"{base_url}/app.py").text app_content_split = app_content.split('if __name__ == "__main__":') if len(app_content_split) > 1: app_content = app_content_split[0] + textwrap.dedent(app_content_split[1]) diff --git a/vizro-core/examples/scratch_dev/app.py b/vizro-core/examples/scratch_dev/app.py index bcc13f491..b3d6b23e9 100644 --- a/vizro-core/examples/scratch_dev/app.py +++ b/vizro-core/examples/scratch_dev/app.py @@ -28,7 +28,7 @@ page = vm.Page( - title="Test New IV", + title="Test New XXXXXX change", components=[ vm.Graph( figure=px.bar(