Skip to content

Commit 34a38b1

Browse files
pre-commit-ci[bot]fmaussion
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 416adfc commit 34a38b1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

xarray/tests/test_formatting.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
import xarray as xr
1010
from xarray.core import formatting
1111

12-
from . import (
13-
requires_netCDF4,
14-
requires_dask,
15-
)
12+
from . import requires_dask, requires_netCDF4
1613

1714

1815
class TestFormatting:
@@ -435,12 +432,13 @@ def test_array_scalar_format(self) -> None:
435432
assert "unsupported format string passed to" in str(excinfo.value)
436433

437434
# also check for dask
438-
var = var.chunk(chunks={'dim_0': 1})
435+
var = var.chunk(chunks={"dim_0": 1})
439436
assert var.__format__("") == "[0.1 0.2]"
440437
with pytest.raises(TypeError) as excinfo:
441438
var.__format__(".2f")
442439
assert "unsupported format string passed to" in str(excinfo.value)
443440

441+
444442
def test_inline_variable_array_repr_custom_repr() -> None:
445443
class CustomArray:
446444
def __init__(self, value, attr):

0 commit comments

Comments
 (0)