Skip to content

Commit 542c3ec

Browse files
committed
fixup + tests
1 parent 7533d95 commit 542c3ec

File tree

2 files changed

+1098
-19
lines changed

2 files changed

+1098
-19
lines changed

src/zarr/storage/_zep8.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,12 @@ def is_zep8_url(url: Any) -> bool:
323323
and adapter_name.lower() not in standard_schemes
324324
and "/" not in adapter_name
325325
and "\\" not in adapter_name
326-
and not (len(adapter_name) == 1 and adapter_name.isalpha() and len(parts) == 2 and (parts[1].startswith("/") or parts[1].startswith("\\")))
326+
and not (
327+
len(adapter_name) == 1
328+
and adapter_name.isalpha()
329+
and len(parts) == 2
330+
and (parts[1].startswith("/") or parts[1].startswith("\\"))
331+
)
327332
and (
328333
adapter_name.isalnum()
329334
or adapter_name.replace("_", "").replace("-", "").isalnum()

0 commit comments

Comments
 (0)