Skip to content

Commit 8caf274

Browse files
authored
Merge branch 'main' into PL
2 parents 022bb3c + 41a567e commit 8caf274

File tree

13 files changed

+713
-447
lines changed

13 files changed

+713
-447
lines changed

.github/workflows/gpu_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: GPU Test V3
4+
name: GPU Test
55

66
on:
77
push:
8-
branches: [ v3 ]
8+
branches: [ main ]
99
pull_request:
10-
branches: [ v3 ]
10+
branches: [ main ]
1111
workflow_dispatch:
1212

1313
env:

.github/workflows/hypothesis.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ on:
33
push:
44
branches:
55
- "main"
6-
- "v3"
76
pull_request:
87
branches:
98
- "main"
10-
- "v3"
119
types: [opened, reopened, synchronize, labeled]
1210
schedule:
1311
- cron: "0 0 * * *" # Daily “At 00:00” UTC

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: Test V3
4+
name: Test
55

66
on:
77
push:
8-
branches: [ v3 ]
8+
branches: [ main ]
99
pull_request:
10-
branches: [ v3 ]
10+
branches: [ main ]
1111
workflow_dispatch:
1212

1313
concurrency:

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Zarr-Python
1616
release
1717
license
1818
contributing
19+
roadmap
1920

2021
**Version**: |version|
2122

docs/roadmap.rst

Lines changed: 696 additions & 0 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ extend-select = [
211211
"B", # flake8-bugbear
212212
"C4", # flake8-comprehensions
213213
"FLY", # flynt
214+
"G", # flake8-logging-format
214215
"I", # isort
215216
"ISC", # flake8-implicit-str-concat
216217
"PGH", # pygrep-hooks
@@ -222,6 +223,7 @@ extend-select = [
222223
"TCH", # flake8-type-checking
223224
"TRY", # tryceratops
224225
"UP", # pyupgrade
226+
"W", # pycodestyle warnings
225227
]
226228
ignore = [
227229
"ANN003",

src/zarr/abc/store.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from abc import ABC, abstractmethod
44
from asyncio import gather
5-
from types import TracebackType
65
from typing import TYPE_CHECKING, NamedTuple, Protocol, runtime_checkable
76

87
if TYPE_CHECKING:

src/zarr/core/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def sync(
133133

134134
finished, unfinished = wait([future], return_when=asyncio.ALL_COMPLETED, timeout=timeout)
135135
if len(unfinished) > 0:
136-
raise TimeoutError(f"Coroutine {coro} failed to finish in within {timeout}s")
136+
raise TimeoutError(f"Coroutine {coro} failed to finish in within {timeout} s")
137137
assert len(finished) == 1
138138
return_result = next(iter(finished)).result()
139139

src/zarr/registry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ def register(self, cls: type[T]) -> None:
4848
__ndbuffer_registry: Registry[NDBuffer] = Registry()
4949

5050
"""
51-
The registry module is responsible for managing implementations of codecs, pipelines, buffers and ndbuffers and
52-
collecting them from entrypoints.
53-
The implementation used is determined by the config
51+
The registry module is responsible for managing implementations of codecs,
52+
pipelines, buffers and ndbuffers and collecting them from entrypoints.
53+
The implementation used is determined by the config.
5454
"""
5555

5656

src/zarr/storage/logging.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ def log(self, hint: Any = "") -> Generator[None, None, None]:
8383
method = inspect.stack()[2].function
8484
op = f"{type(self._store).__name__}.{method}"
8585
if hint:
86-
op += f"({hint})"
87-
self.logger.info(f"Calling {op}")
86+
op = f"{op}({hint})"
87+
self.logger.info("Calling %s", op)
8888
start_time = time.time()
8989
try:
9090
self.counter[method] += 1
9191
yield
9292
finally:
9393
end_time = time.time()
94-
self.logger.info(f"Finished {op} [{end_time - start_time:.2f}s]")
94+
self.logger.info("Finished %s [%.2f s]", op, end_time - start_time)
9595

9696
@property
9797
def supports_writes(self) -> bool:

0 commit comments

Comments
 (0)