Skip to content

Commit cd0d682

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7288eb2 commit cd0d682

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:
@@ -430,12 +427,13 @@ def test_array_scalar_format(self) -> None:
430427
assert "unsupported format string passed to" in str(excinfo.value)
431428

432429
# also check for dask
433-
var = var.chunk(chunks={'dim_0': 1})
430+
var = var.chunk(chunks={"dim_0": 1})
434431
assert var.__format__("") == "[0.1 0.2]"
435432
with pytest.raises(TypeError) as excinfo:
436433
var.__format__(".2f")
437434
assert "unsupported format string passed to" in str(excinfo.value)
438435

436+
439437
def test_inline_variable_array_repr_custom_repr() -> None:
440438
class CustomArray:
441439
def __init__(self, value, attr):

0 commit comments

Comments
 (0)