From 27f028bde31f69c2655aef8d678eb83b275a017e Mon Sep 17 00:00:00 2001 From: Brian Kohan Date: Tue, 5 Mar 2024 14:46:38 -0800 Subject: [PATCH 1/4] Fix sphinx-autobuild infinite loop bug --- noxfile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index 59c5a47..6137392 100644 --- a/noxfile.py +++ b/noxfile.py @@ -216,7 +216,10 @@ def docs_build(session: Session) -> None: @session(python=python_versions[0]) def docs(session: Session) -> None: """Build and serve the documentation with live reloading on file changes.""" - args = session.posargs or ["--open-browser", "docs", "docs/_build"] + ignore = [ + 'docs/jupyter_execute/tutorials/quickstart.ipynb' + ] + args = session.posargs or ["--open-browser", "docs", "docs/_build", "--ignore", *ignore] session.install(".") session.install( "sphinx", From 4fb543fa17766a287156bae7e88104f8d70d318f Mon Sep 17 00:00:00 2001 From: Altay Sansal Date: Tue, 5 Mar 2024 17:52:17 -0600 Subject: [PATCH 2/4] satisfy linter --- noxfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index 6137392..d7ab2a3 100644 --- a/noxfile.py +++ b/noxfile.py @@ -219,7 +219,8 @@ def docs(session: Session) -> None: ignore = [ 'docs/jupyter_execute/tutorials/quickstart.ipynb' ] - args = session.posargs or ["--open-browser", "docs", "docs/_build", "--ignore", *ignore] + args = ["--open-browser", "docs", "docs/_build", "--ignore", *ignore] + args = session.posargs or args session.install(".") session.install( "sphinx", From 3f9483dea13419f2632d19b171b3f16023461613 Mon Sep 17 00:00:00 2001 From: Altay Sansal Date: Tue, 5 Mar 2024 17:54:03 -0600 Subject: [PATCH 3/4] satisfy linter - try2 --- noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index d7ab2a3..8111135 100644 --- a/noxfile.py +++ b/noxfile.py @@ -217,7 +217,7 @@ def docs_build(session: Session) -> None: def docs(session: Session) -> None: """Build and serve the documentation with live reloading on file changes.""" ignore = [ - 'docs/jupyter_execute/tutorials/quickstart.ipynb' + 'docs/jupyter_execute/tutorials/quickstart.ipynb', ] args = ["--open-browser", "docs", "docs/_build", "--ignore", *ignore] args = session.posargs or args From f505723aeba4b4336d1e925966688366d3356b77 Mon Sep 17 00:00:00 2001 From: Altay Sansal Date: Tue, 5 Mar 2024 17:55:11 -0600 Subject: [PATCH 4/4] satisfy linter - try 3 --- noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index 8111135..0430647 100644 --- a/noxfile.py +++ b/noxfile.py @@ -217,7 +217,7 @@ def docs_build(session: Session) -> None: def docs(session: Session) -> None: """Build and serve the documentation with live reloading on file changes.""" ignore = [ - 'docs/jupyter_execute/tutorials/quickstart.ipynb', + "docs/jupyter_execute/tutorials/quickstart.ipynb", ] args = ["--open-browser", "docs", "docs/_build", "--ignore", *ignore] args = session.posargs or args