Skip to content

Commit

Permalink
Merge pull request #392 from ocefpaf/update_pre-commits
Browse files Browse the repository at this point in the history
Update pre commits
  • Loading branch information
ocefpaf authored Feb 4, 2025
2 parents a8eebb1 + c899ded commit 28b5f1f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ on:
jobs:
build-docs:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}

steps:
- name: checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0

Expand All @@ -29,12 +32,10 @@ jobs:
python=3 --file requirements.txt --file requirements-dev.txt --channel conda-forge
- name: Install erddapy
shell: bash -l {0}
run: |
python -m pip install -e . --no-deps --force-reinstall
- name: Build documentation
shell: bash -l {0}
run: >
set -e
&& jupyter nbconvert --to notebook --execute notebooks/00-quick_intro.ipynb --output=00-quick_intro-output.ipynb
Expand All @@ -49,7 +50,7 @@ jobs:
- name: Deploy
if: success() && github.event_name == 'release'
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e #v4
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ repos:
args: [--config=pyproject.toml]

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
exclude: >
Expand All @@ -50,7 +50,7 @@ repos:
- id: add-trailing-comma

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.9.4
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
4 changes: 2 additions & 2 deletions notebooks/01a-griddap.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Now we have data only for the Altantic Ocean, no land data in our plot.\n",
"Now we have data only for the Atlantic Ocean, no land data in our plot.\n",
"\n",
"### Subset after the request with OPeNDAP\n",
"\n",
Expand Down Expand Up @@ -355,7 +355,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.13.0"
"version": "3.13.1"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions notebooks/01b-tabledap.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@
"\n",
"df = pd.read_csv(url)\n",
"print(\n",
" f'We have {len(set(df[\"tabledap\"].dropna()))} '\n",
" f'tabledap, {len(set(df[\"griddap\"].dropna()))} '\n",
" f'griddap, and {len(set(df[\"wms\"].dropna()))} wms endpoints.',\n",
" f\"We have {len(set(df['tabledap'].dropna()))} \"\n",
" f\"tabledap, {len(set(df['griddap'].dropna()))} \"\n",
" f\"griddap, and {len(set(df['wms'].dropna()))} wms endpoints.\",\n",
")"
]
},
Expand Down

0 comments on commit 28b5f1f

Please sign in to comment.