Skip to content

Commit 97f1f8f

Browse files
Apply ruff rule RUF022
RUF022 `__all__` is not sorted
1 parent d6a1fb0 commit 97f1f8f

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

xarray/__init__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@
7878
"combine_by_coords",
7979
"combine_nested",
8080
"concat",
81+
"corr",
82+
"cov",
83+
"cross",
8184
"date_range",
8285
"date_range_like",
8386
"decode_cf",
8487
"dot",
85-
"cov",
86-
"corr",
87-
"cross",
8888
"full_like",
8989
"get_options",
9090
"group_subtrees",
@@ -121,8 +121,8 @@
121121
"Index",
122122
"IndexSelResult",
123123
"IndexVariable",
124-
"Variable",
125124
"NamedArray",
125+
"Variable",
126126
# Exceptions
127127
"InvalidTreeError",
128128
"MergeError",

xarray/backends/__init__.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@
2323
"AbstractDataStore",
2424
"BackendArray",
2525
"BackendEntrypoint",
26-
"FileManager",
2726
"CachingFileManager",
2827
"DummyFileManager",
29-
"InMemoryDataStore",
30-
"NetCDF4DataStore",
31-
"PydapDataStore",
32-
"ScipyDataStore",
28+
"FileManager",
3329
"H5NetCDFStore",
34-
"ZarrStore",
3530
"H5netcdfBackendEntrypoint",
31+
"InMemoryDataStore",
3632
"NetCDF4BackendEntrypoint",
33+
"NetCDF4DataStore",
3734
"PydapBackendEntrypoint",
35+
"PydapDataStore",
3836
"ScipyBackendEntrypoint",
37+
"ScipyDataStore",
3938
"StoreBackendEntrypoint",
4039
"ZarrBackendEntrypoint",
40+
"ZarrStore",
4141
"list_engines",
4242
"refresh_engines",
4343
]

xarray/groupers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
from xarray.namedarray.pycompat import is_chunked_array
3636

3737
__all__ = [
38+
"BinGrouper",
3839
"EncodedGroups",
3940
"Grouper",
4041
"Resampler",
41-
"UniqueGrouper",
42-
"BinGrouper",
4342
"TimeResampler",
43+
"UniqueGrouper",
4444
]
4545

4646
RESAMPLE_DIM = "__resample_dim__"

xarray/plot/__init__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
from xarray.plot.facetgrid import FacetGrid
2323

2424
__all__ = [
25-
"plot",
26-
"line",
27-
"step",
25+
"FacetGrid",
2826
"contour",
2927
"contourf",
3028
"hist",
3129
"imshow",
30+
"line",
3231
"pcolormesh",
33-
"FacetGrid",
32+
"plot",
3433
"scatter",
34+
"step",
3535
"surface",
3636
]

xarray/testing/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
__all__ = [
1818
"assert_allclose",
1919
"assert_chunks_equal",
20-
"assert_duckarray_equal",
2120
"assert_duckarray_allclose",
21+
"assert_duckarray_equal",
2222
"assert_equal",
2323
"assert_identical",
2424
"assert_isomorphic",

xarray/testing/strategies.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020

2121

2222
__all__ = [
23-
"supported_dtypes",
24-
"pandas_index_dtypes",
25-
"names",
23+
"attrs",
2624
"dimension_names",
2725
"dimension_sizes",
28-
"attrs",
29-
"variables",
26+
"names",
27+
"pandas_index_dtypes",
28+
"supported_dtypes",
3029
"unique_subset_of",
30+
"variables",
3131
]
3232

3333

0 commit comments

Comments
 (0)