Skip to content

Commit

Permalink
Merge pull request #20 from WCRP-CORDEX/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
larsbuntemeyer authored Feb 9, 2024
2 parents 5b93066 + b917248 commit f365bfc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tutorials/aws-access.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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()"
]
Expand Down

0 comments on commit f365bfc

Please sign in to comment.