From 0b722e8bb8e20c343c4f2cfe93a1927c49252fc8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Jul 2023 19:39:12 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.275 → v0.0.276](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.275...v0.0.276) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7e0adb53150..df5584669c7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: files: ^xarray/ - repo: https://github.com/charliermarsh/ruff-pre-commit # Ruff version. - rev: 'v0.0.275' + rev: 'v0.0.276' hooks: - id: ruff args: ["--fix"] From 03c31dab3d9f9313c9048198a9b561399463c022 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 5 Jul 2023 15:50:37 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- xarray/core/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/core/dataset.py b/xarray/core/dataset.py index 0cabe803f7d..8898cff789a 100644 --- a/xarray/core/dataset.py +++ b/xarray/core/dataset.py @@ -8648,7 +8648,7 @@ def argmax(self: T_Dataset, dim: Hashable | None = None, **kwargs) -> T_Dataset: ... ) # Indices of the maximum values along the 'student' dimension are calculated - + >>> argmax_indices = dataset.argmax(dim="test") >>> argmax_indices