Skip to content

Commit 633b969

Browse files
Update pre-commit workflow (#52)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 10b6c16 commit 633b969

3 files changed

Lines changed: 9 additions & 12 deletions

File tree

.github/workflows/main.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ on:
77
branches: master
88

99
jobs:
10-
pre-commit:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v1
14-
- uses: actions/setup-python@v1
15-
- uses: pre-commit/action@v2.0.0
1610
test:
1711
name: Tutorial Testing
1812
runs-on: ubuntu-latest

.pre-commit-config.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
ci:
2+
autoupdate_schedule: quarterly
3+
14
repos:
25

36
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.1.0
7+
rev: v4.2.0
58
hooks:
69
- id: trailing-whitespace
710
- id: end-of-file-fixer
@@ -12,7 +15,7 @@ repos:
1215
args: ["--autofix", "--indent=2", "--no-sort-keys"]
1316

1417
- repo: https://github.com/ambv/black
15-
rev: 22.1.0
18+
rev: 22.3.0
1619
hooks:
1720
- id: black
1821
args: ["--line-length", "100"]
@@ -33,6 +36,6 @@ repos:
3336
- id: prenotebook
3437

3538
- repo: https://github.com/myint/rstcheck
36-
rev: master
39+
rev: v5.0.0
3740
hooks:
3841
- id: rstcheck

scipy-tutorial/03_computation_with_xarray.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,9 +600,9 @@
600600
"source": [
601601
"#### Aggregations\n",
602602
"\n",
603-
"`.map` accepts as its argument a function that expects and return xarray objects. \n",
604-
"We define a custom function. This function takes a single argument--the group\n",
605-
"dataset--and returns a new dataset to be combined:\n"
603+
"`.map` accepts as its argument a function that expects and return xarray\n",
604+
"objects. We define a custom function. This function takes a single argument--the\n",
605+
"group dataset--and returns a new dataset to be combined:\n"
606606
]
607607
},
608608
{

0 commit comments

Comments
 (0)