Skip to content

Commit

Permalink
Merge branch 'main' into W
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamman authored Oct 15, 2024
2 parents 30c81b3 + 1197bbe commit d59f09f
Show file tree
Hide file tree
Showing 11 changed files with 708 additions and 443 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gpu_test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: GPU Test V3
name: GPU Test

on:
push:
branches: [ v3 ]
branches: [ main ]
pull_request:
branches: [ v3 ]
branches: [ main ]
workflow_dispatch:

env:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/hypothesis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ on:
push:
branches:
- "main"
- "v3"
pull_request:
branches:
- "main"
- "v3"
types: [opened, reopened, synchronize, labeled]
schedule:
- cron: "0 0 * * *" # Daily “At 00:00” UTC
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Test V3
name: Test

on:
push:
branches: [ v3 ]
branches: [ main ]
pull_request:
branches: [ v3 ]
branches: [ main ]
workflow_dispatch:

concurrency:
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Zarr-Python
release
license
contributing
roadmap

**Version**: |version|

Expand Down
696 changes: 696 additions & 0 deletions docs/roadmap.rst

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"FLY", # flynt
"G", # flake8-logging-format
"I", # isort
"ISC", # flake8-implicit-str-concat
"PGH", # pygrep-hooks
Expand Down
1 change: 0 additions & 1 deletion src/zarr/abc/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from abc import ABC, abstractmethod
from asyncio import gather
from types import TracebackType
from typing import TYPE_CHECKING, NamedTuple, Protocol, runtime_checkable

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion src/zarr/core/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def sync(

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

Expand Down
6 changes: 3 additions & 3 deletions src/zarr/storage/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ def log(self, hint: Any = "") -> Generator[None, None, None]:
method = inspect.stack()[2].function
op = f"{type(self._store).__name__}.{method}"
if hint:
op += f"({hint})"
self.logger.info(f"Calling {op}")
op = f"{op}({hint})"
self.logger.info("Calling %s", op)
start_time = time.time()
try:
self.counter[method] += 1
yield
finally:
end_time = time.time()
self.logger.info(f"Finished {op} [{end_time - start_time:.2f}s]")
self.logger.info("Finished %s [%.2f s]", op, end_time - start_time)

@property
def supports_writes(self) -> bool:
Expand Down
1 change: 0 additions & 1 deletion src/zarr/storage/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import fsspec

from zarr.abc.store import ByteRangeRequest, Store
from zarr.core.buffer import Buffer
from zarr.storage.common import _dereference_path

if TYPE_CHECKING:
Expand Down
Loading

0 comments on commit d59f09f

Please sign in to comment.