Skip to content

Commit

Permalink
Apply ruff rule RUF022
Browse files Browse the repository at this point in the history
RUF022 `__all__` is not sorted
  • Loading branch information
DimitriPapadopoulos committed Nov 6, 2024
1 parent 5e464a7 commit c4ccc20
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
8 changes: 4 additions & 4 deletions xarray/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@
"combine_by_coords",
"combine_nested",
"concat",
"corr",
"cov",
"cross",
"date_range",
"date_range_like",
"decode_cf",
"dot",
"cov",
"corr",
"cross",
"full_like",
"get_options",
"group_subtrees",
Expand Down Expand Up @@ -121,8 +121,8 @@
"Index",
"IndexSelResult",
"IndexVariable",
"Variable",
"NamedArray",
"Variable",
# Exceptions
"InvalidTreeError",
"MergeError",
Expand Down
12 changes: 6 additions & 6 deletions xarray/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@
"AbstractDataStore",
"BackendArray",
"BackendEntrypoint",
"FileManager",
"CachingFileManager",
"DummyFileManager",
"InMemoryDataStore",
"NetCDF4DataStore",
"PydapDataStore",
"ScipyDataStore",
"FileManager",
"H5NetCDFStore",
"ZarrStore",
"H5netcdfBackendEntrypoint",
"InMemoryDataStore",
"NetCDF4BackendEntrypoint",
"NetCDF4DataStore",
"PydapBackendEntrypoint",
"PydapDataStore",
"ScipyBackendEntrypoint",
"ScipyDataStore",
"StoreBackendEntrypoint",
"ZarrBackendEntrypoint",
"ZarrStore",
"list_engines",
"refresh_engines",
]
4 changes: 2 additions & 2 deletions xarray/groupers.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
from xarray.namedarray.pycompat import is_chunked_array

__all__ = [
"BinGrouper",
"EncodedGroups",
"Grouper",
"Resampler",
"UniqueGrouper",
"BinGrouper",
"TimeResampler",
"UniqueGrouper",
]

RESAMPLE_DIM = "__resample_dim__"
Expand Down
8 changes: 4 additions & 4 deletions xarray/plot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
from xarray.plot.facetgrid import FacetGrid

__all__ = [
"plot",
"line",
"step",
"FacetGrid",
"contour",
"contourf",
"hist",
"imshow",
"line",
"pcolormesh",
"FacetGrid",
"plot",
"scatter",
"step",
"surface",
]
2 changes: 1 addition & 1 deletion xarray/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
__all__ = [
"assert_allclose",
"assert_chunks_equal",
"assert_duckarray_equal",
"assert_duckarray_allclose",
"assert_duckarray_equal",
"assert_equal",
"assert_identical",
"assert_isomorphic",
Expand Down
10 changes: 5 additions & 5 deletions xarray/testing/strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@


__all__ = [
"supported_dtypes",
"pandas_index_dtypes",
"names",
"attrs",
"dimension_names",
"dimension_sizes",
"attrs",
"variables",
"names",
"pandas_index_dtypes",
"supported_dtypes",
"unique_subset_of",
"variables",
]


Expand Down

0 comments on commit c4ccc20

Please sign in to comment.