From a4f88d2673a98abc8668651ce75915165ff44c5f Mon Sep 17 00:00:00 2001 From: ZergLev Date: Fri, 29 Nov 2024 21:49:33 +0300 Subject: [PATCH] final fix for test_tutorials (noqa removed from tutorials for clarity) --- docs/source/utils/notebook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/utils/notebook.py b/docs/source/utils/notebook.py index 4087339e5..bb51ca16a 100644 --- a/docs/source/utils/notebook.py +++ b/docs/source/utils/notebook.py @@ -54,7 +54,7 @@ class InstallationCell(ReplacePattern): Uncomment `# %pip install {}`, add a "quiet" flag, add a comment explaining the cell. """ - pattern: ClassVar[re.Pattern] = re.compile("\n# %pip install (.*)( # noqa: E501)?\n") + pattern: ClassVar[re.Pattern] = re.compile("\n# %pip install (.*?)([ ]*# noqa: E501)?\n") @staticmethod def replace_versions(cmd: str):