From 97c10015e2517b4f29c5f58f2234c5f5ba5a5380 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 20:04:21 +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/psf/black: 23.10.0 → 24.1.1](https://github.com/psf/black/compare/23.10.0...24.1.1) - [github.com/pycqa/isort: 5.12.0 → 5.13.2](https://github.com/pycqa/isort/compare/5.12.0...5.13.2) - [github.com/pycqa/flake8: 6.1.0 → 7.0.0](https://github.com/pycqa/flake8/compare/6.1.0...7.0.0) - [github.com/nbQA-dev/nbQA: 1.7.0 → 1.7.1](https://github.com/nbQA-dev/nbQA/compare/1.7.0...1.7.1) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0adbb77..97b6b29 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,21 +7,21 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 23.10.0 + rev: 24.1.1 hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort name: isort (python) args: ["--profile", "black"] - repo: https://github.com/pycqa/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 - repo: https://github.com/nbQA-dev/nbQA - rev: 1.7.0 + rev: 1.7.1 hooks: - id: nbqa-black - id: nbqa-pyupgrade From b9172484c81e589e67987762d6f41a09b809c58c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 20:04:34 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tutorials/aws-access.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorials/aws-access.ipynb b/tutorials/aws-access.ipynb index 6c4f106..41c8ca6 100644 --- a/tutorials/aws-access.ipynb +++ b/tutorials/aws-access.ipynb @@ -3695,9 +3695,9 @@ "\n", " \"\"\"\n", " year = slice(2005 - n + 1, 2005)\n", - " ensemble.loc[\n", - " dict(experiment_id=[\"rcp26\", \"rcp45\", \"rcp85\"], year=year)\n", - " ] = ensemble.sel(experiment_id=\"historical\").sel(year=year)\n", + " ensemble.loc[dict(experiment_id=[\"rcp26\", \"rcp45\", \"rcp85\"], year=year)] = (\n", + " ensemble.sel(experiment_id=\"historical\").sel(year=year)\n", + " )\n", "\n", " return ensemble.rolling(year=n, center=False).mean()" ]