Skip to content

Commit

Permalink
black formatting and removing unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonw committed Aug 29, 2024
1 parent 2a8008f commit c26e256
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion funlib/persistence/arrays/array.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging
from functools import reduce
from typing import Sequence, Optional, Union
from typing import Optional, Sequence, Union

import dask.array as da
import numpy as np
Expand Down
9 changes: 6 additions & 3 deletions funlib/persistence/arrays/datasets.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import logging
from typing import Sequence, Optional, Union
from typing import Optional, Sequence, Union

import numpy as np
import zarr
from numpy.typing import DTypeLike

from funlib.geometry import Coordinate, Roi
from funlib.geometry import Coordinate

from .array import Array
from .metadata import MetaDataFormat, get_default_metadata_format
Expand Down Expand Up @@ -218,7 +218,10 @@ def prepare_ds(
)
data_compatible = False

if chunk_shape is not None and chunk_shape != existing_array._source_data.chunks:
if (
chunk_shape is not None
and chunk_shape != existing_array._source_data.chunks
):
logger.info(
"Chunk shapes differ: given (%s) vs parsed (%s)",
chunk_shape,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dev = ['coverage>=5.0.3', 'pytest', 'pytest-mock', 'black', 'mypy', 'types-psyco

[tool.ruff]
# pyflakes, pycodestyle, isort
select = ["F", "W", "I001"]
lint.select = ["F", "W", "I001"]

[tool.setuptools.package-data]
"funlib.persistence" = ["py.typed"]

0 comments on commit c26e256

Please sign in to comment.