From 9f8248d72a72d5142880f3675a1b89c569fe20e1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 12:17:43 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- doc/whats-new.rst | 2 +- xarray/__init__.py | 2 +- xarray/tests/test_plugins.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 8f2c2da47b5..227b9b3b389 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -21,7 +21,7 @@ v.2024.11.1 (unreleased) New Features ~~~~~~~~~~~~ -- Add :py:func:`~xarray.show_backends` alias for :py:func:`~xarray.backends.list_engines` (:issue:`6577`, :pull:`xxx`). +- Add :py:func:`~xarray.show_backends` alias for :py:func:`~xarray.backends.list_engines` (:issue:`6577`, :pull:`xxx`). By `Nick Hodgskin `_. Breaking changes diff --git a/xarray/__init__.py b/xarray/__init__.py index 9e3ab68c59f..a0abffc2222 100644 --- a/xarray/__init__.py +++ b/xarray/__init__.py @@ -11,6 +11,7 @@ open_mfdataset, save_mfdataset, ) +from xarray.backends.plugins import show_backends from xarray.backends.zarr import open_zarr from xarray.coding.cftime_offsets import cftime_range, date_range, date_range_like from xarray.coding.cftimeindex import CFTimeIndex @@ -51,7 +52,6 @@ TreeIsomorphismError, group_subtrees, ) -from xarray.backends.plugins import show_backends from xarray.core.variable import IndexVariable, Variable, as_variable from xarray.namedarray.core import NamedArray from xarray.util.print_versions import show_versions diff --git a/xarray/tests/test_plugins.py b/xarray/tests/test_plugins.py index b5492c64c72..4f9b07725e6 100644 --- a/xarray/tests/test_plugins.py +++ b/xarray/tests/test_plugins.py @@ -275,6 +275,7 @@ def test_list_engines() -> None: assert ("zarr" in engines) == has_zarr assert "store" in engines + def test_show_engines() -> None: from xarray import show_backends from xarray.backends import list_engines