Skip to content

Commit c32e58b

Browse files
crusaderkydcherian
authored andcommitted
One-off isort run (#3705)
* isort run * Fix docs regression
1 parent e646dd9 commit c32e58b

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

doc/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
os.environ["PYTHONPATH"] = str(root)
2626
sys.path.insert(0, str(root))
2727

28-
import xarray
28+
import xarray # isort:skip
2929

3030
allowed_failures = set()
3131

properties/test_pandas_roundtrip.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
"""
22
Property-based tests for roundtripping between xarray and pandas objects.
33
"""
4-
import pytest
5-
6-
pytest.importorskip("hypothesis")
7-
84
from functools import partial
9-
import hypothesis.extra.numpy as npst
10-
import hypothesis.extra.pandas as pdst
11-
import hypothesis.strategies as st
12-
from hypothesis import given
135

146
import numpy as np
157
import pandas as pd
8+
import pytest
9+
1610
import xarray as xr
1711

12+
pytest.importorskip("hypothesis")
13+
import hypothesis.extra.numpy as npst # isort:skip
14+
import hypothesis.extra.pandas as pdst # isort:skip
15+
import hypothesis.strategies as st # isort:skip
16+
from hypothesis import given # isort:skip
17+
1818
numeric_dtypes = st.one_of(
1919
npst.unsigned_integer_dtypes(), npst.integer_dtypes(), npst.floating_dtypes()
2020
)

xarray/core/dataset.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@
9292
IndexVariable,
9393
Variable,
9494
as_variable,
95-
broadcast_variables,
9695
assert_unique_multiindex_level_names,
96+
broadcast_variables,
9797
)
9898

9999
if TYPE_CHECKING:

xarray/core/duck_array_ops.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import numpy as np
1212
import pandas as pd
1313

14-
from . import dask_array_ops, dask_array_compat, dtypes, npcompat, nputils
14+
from . import dask_array_compat, dask_array_ops, dtypes, npcompat, nputils
1515
from .nputils import nanfirst, nanlast
1616
from .pycompat import dask_array_type
1717

xarray/core/parallel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
from typing import (
1414
Any,
1515
Callable,
16-
Dict,
1716
DefaultDict,
17+
Dict,
1818
Hashable,
1919
Mapping,
2020
Sequence,

xarray/tests/test_accessor_dt.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
requires_cftime,
1212
requires_dask,
1313
)
14-
15-
from .test_dask import raise_if_dask_computes, assert_chunks_equal
14+
from .test_dask import assert_chunks_equal, raise_if_dask_computes
1615

1716

1817
class TestDatetimeAccessor:

xarray/tests/test_units.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import xarray as xr
88
from xarray.core import formatting
99
from xarray.core.npcompat import IS_NEP18_ACTIVE
10+
1011
from .test_variable import VariableSubclassobjects
1112

1213
pint = pytest.importorskip("pint")

0 commit comments

Comments
 (0)