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 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()" ]