Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 24, 2025
1 parent 8cf58e1 commit fedccca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/test_backed_sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def diskfmt(request):
zarr_metadata_key = ".zarray" if is_zarr_v2() else "zarr.json"
zarr_separator = "" if is_zarr_v2() else "/c"


@pytest.fixture
def ondisk_equivalent_adata(
tmp_path: Path, diskfmt: Literal["h5ad", "zarr"]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_io_dispatched.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import anndata as ad
from anndata._io.zarr import open_write_group
from anndata.compat import SpArray, is_zarr_v2, ZarrGroup
from anndata.compat import SpArray, ZarrGroup, is_zarr_v2
from anndata.experimental import read_dispatched, write_dispatched
from anndata.tests.helpers import assert_equal, gen_adata

Expand Down Expand Up @@ -163,7 +163,7 @@ def h5ad_writer(func, store, k, elem, dataset_kwargs, iospec):
func(store, k, elem, dataset_kwargs=dataset_kwargs)

def zarr_writer(func, store, k, elem, dataset_kwargs, iospec):
zarr_write_keys.append(f"{store.name.strip("/")}/{k.strip("/")}".strip("/"))
zarr_write_keys.append(f"{store.name.strip('/')}/{k.strip('/')}".strip("/"))
func(store, k, elem, dataset_kwargs=dataset_kwargs)

def h5ad_reader(func, elem_name: str, elem, iospec):
Expand Down

0 comments on commit fedccca

Please sign in to comment.