Skip to content

Commit 696427b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent cd351e8 commit 696427b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/probeinterface/library.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,4 +289,8 @@ def list_github_folders(owner: str, repo: str, path: str = "", ref: str = None,
289289
if resp.status_code != 200:
290290
raise RuntimeError(f"GitHub API returned status {resp.status_code}: {resp.text}")
291291
items = resp.json()
292-
return [item["name"] for item in items if item.get("type") == "dir" and item["name"][0] != "." and item["name"] != "scripts"]
292+
return [
293+
item["name"]
294+
for item in items
295+
if item.get("type") == "dir" and item["name"][0] != "." and item["name"] != "scripts"
296+
]

0 commit comments

Comments
 (0)