From cd351e8eb557bc41410fdf3ca50708b82eefe0e5 Mon Sep 17 00:00:00 2001 From: chrishalcrow Date: Mon, 3 Nov 2025 13:42:31 +0000 Subject: [PATCH 1/2] remove scipts from items in list_github_folders --- src/probeinterface/library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/probeinterface/library.py b/src/probeinterface/library.py index 505ead0..205feb9 100644 --- a/src/probeinterface/library.py +++ b/src/probeinterface/library.py @@ -289,4 +289,4 @@ def list_github_folders(owner: str, repo: str, path: str = "", ref: str = None, if resp.status_code != 200: raise RuntimeError(f"GitHub API returned status {resp.status_code}: {resp.text}") items = resp.json() - return [item["name"] for item in items if item.get("type") == "dir" and item["name"][0] != "."] + return [item["name"] for item in items if item.get("type") == "dir" and item["name"][0] != "." and item["name"] != "scripts"] From 696427b8738103ca32c1b534661d4fdb6cd5cb2a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Nov 2025 13:45:02 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/probeinterface/library.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/probeinterface/library.py b/src/probeinterface/library.py index 205feb9..8238c22 100644 --- a/src/probeinterface/library.py +++ b/src/probeinterface/library.py @@ -289,4 +289,8 @@ def list_github_folders(owner: str, repo: str, path: str = "", ref: str = None, if resp.status_code != 200: raise RuntimeError(f"GitHub API returned status {resp.status_code}: {resp.text}") items = resp.json() - return [item["name"] for item in items if item.get("type") == "dir" and item["name"][0] != "." and item["name"] != "scripts"] + return [ + item["name"] + for item in items + if item.get("type") == "dir" and item["name"][0] != "." and item["name"] != "scripts" + ]