From a4096a5626205959246add2a422a661c80264e15 Mon Sep 17 00:00:00 2001 From: Remco de Boer <29308176+redeboer@users.noreply.github.com> Date: Thu, 9 May 2024 16:44:39 +0200 Subject: [PATCH] MAIN: build `nb_exclusion_patterns` with `set` --- docs/conf.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 91389ac9..9357a3c2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -24,7 +24,7 @@ def get_nb_exclusion_patterns() -> list[str]: - exclusions = [ + exclusions = { "adr/001/*", "adr/002/*", "report/000*", @@ -44,13 +44,13 @@ def get_nb_exclusion_patterns() -> list[str]: "report/020*", "report/021*", "report/022*", - ] - julia_notebooks = [ + } + julia_notebooks = { "report/019*", - ] + } if shutil.which("julia") is None or "READTHEDOCS" in os.environ: - exclusions.extend(julia_notebooks) - return exclusions + exclusions.update(julia_notebooks) + return sorted(exclusions) def install_ijulia() -> None: