8000 pre-commit update (#239) · xarray-contrib/xarray-tutorial@af3448e · GitHub
[go: up one dir, main page]

Skip to content

Commit af3448e

Browse files
pre-commit update (#239)
* pre-commit update * Skip devcontainer linting * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 28a0c1a commit af3448e

26 files changed

+529
-528
lines changed

.devcontainer/devcontainer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
22
"build": {
33
"dockerfile": "./Dockerfile",
4-
"context": "../conda"
4+
"context": "../conda",
55
},
66
"postCreateCommand": {
7-
"vscode": "mkdir ${containerWorkspaceFolder}/.vscode && cp ${containerWorkspaceFolder}/.devcontainer/tasks.json ${containerWorkspaceFolder}/.vscode/tasks.json"
7+
"vscode": "mkdir ${containerWorkspaceFolder}/.vscode && cp ${containerWorkspaceFolder}/.devcontainer/tasks.json ${containerWorkspaceFolder}/.vscode/tasks.json",
88
},
99
"hostRequirements": {
10-
"cpus": 2
10+
"cpus": 2,
1111
},
1212
"customizations": {
1313
"codespaces": {
14-
"openFiles": ["README.md"]
14+
"openFiles": ["README.md"],
1515
},
1616
"vscode": {
17-
"extensions": ["ms-toolsai.jupyter", "ms-python.python"]
18-
}
19-
}
17+
"extensions": ["ms-toolsai.jupyter", "ms-python.python"],
18+
},
19+
},
2020
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
22
"build": {
33
"dockerfile": "../Dockerfile",
4-
"context": "../../conda"
4+
"context": "../../conda",
55
},
66
"postCreateCommand": {
77
"jupyterlab": "mkdir /home/jovyan/.jupyter && cp ${containerWorkspaceFolder}/.devcontainer/scipy2023/jupyter_lab_config.py /home/jovyan/.jupyter/jupyter_lab_config.py",
8-
"vscode": "mkdir ${containerWorkspaceFolder}/.vscode && cp ${containerWorkspaceFolder}/.devcontainer/scipy2023/tasks.json ${containerWorkspaceFolder}/.vscode/tasks.json"
8+
"vscode": "mkdir ${containerWorkspaceFolder}/.vscode && cp ${containerWorkspaceFolder}/.devcontainer/scipy2023/tasks.json ${containerWorkspaceFolder}/.vscode/tasks.json",
99
},
1010
"hostRequirements": {
11-
"cpus": 2
11+
"cpus": 2,
1212
},
1313
"customizations": {
1414
"codespaces": {
15-
"openFiles": ["workshops/scipy2023/README.md"]
15+
"openFiles": ["workshops/scipy2023/README.md"],
1616
},
1717
"vscode": {
18-
"extensions": ["ms-toolsai.jupyter", "ms-python.python"]
19-
}
20-
}
18+
"extensions": ["ms-toolsai.jupyter", "ms-python.python"],
19+
},
20+
},
2121
}

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2
22
updates:
3-
- package-ecosystem: 'docker'
4-
directory: '/.devcontainer'
3+
- package-ecosystem: "docker"
4+
directory: "/.devcontainer"
55
schedule:
6-
interval: 'daily'
6+
interval: "daily"

.github/workflows/qaqc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
with:
3434
check_filenames: true
3535
check_hidden: true
36-
skip: '.git,*.js,qaqc.yml'
36+
skip: ".git,*.js,qaqc.yml"
3737
ignore_words_list: hist,nd
3838

3939
# borrowed from https://github.com/ProjectPythia/pythia-foundations/blob/main/.github/workflows/link-checker.yaml

.pre-commit-config.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ repos:
99
- id: end-of-file-fixer
1010
- id: check-docstring-first
1111
- id: check-json
12+
exclude: ^.devcontainer/
1213
- id: check-yaml
1314
- id: double-quote-string-fixer
1415

1516
- repo: https://github.com/psf/black
16-
rev: 23.10.1
17+
rev: 24.2.0
1718
hooks:
1819
- id: black
1920
- id: black-jupyter
@@ -24,22 +25,22 @@ repos:
2425
- id: blackdoc
2526

2627
- repo: https://github.com/PyCQA/flake8
27-
rev: 6.1.0
28+
rev: 7.0.0
2829
hooks:
2930
- id: flake8
3031

3132
- repo: https://github.com/PyCQA/isort
32-
rev: 5.12.0
33+
rev: 5.13.2
3334
hooks:
3435
- id: isort
3536

3637
- repo: https://github.com/pre-commit/mirrors-prettier
37-
rev: v3.0.3
38+
rev: v4.0.0-alpha.8
3839
hooks:
3940
- id: prettier
4041

4142
- repo: https://github.com/kynan/nbstripout
42-
rev: 0.6.1
43+
rev: 0.7.1
4344
hooks:
4445
- id: nbstripout
4546
args: [--extra-keys=metadata.kernelspec metadata.language_info.version]

_config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Learn more at https://jupyterbook.org/customize/config.html
2-
title: ''
2+
title: ""
33
author: The Xarray Community
4-
copyright: '2023'
4+
copyright: "2023"
55
logo: images/logo.png
66
only_build_toc_files: true
77

@@ -35,7 +35,7 @@ parse:
3535
# Force re-execution of notebooks on each build.
3636
# See https://jupyterbook.org/content/execute.html
3737
execute:
38-
execute_notebooks: 'cache'
38+
execute_notebooks: "cache"
3939
allow_errors: false
4040
# Per-cell notebook execution limit (seconds)
4141
timeout: 300
@@ -48,11 +48,11 @@ latex:
4848
# Configure your Binder links, such as the URL of the BinderHub.
4949
launch_buttons:
5050
notebook_interface: jupyterlab
51-
binderhub_url: 'https://mybinder.org'
51+
binderhub_url: "https://mybinder.org"
5252

5353
# Information about where the book exists on the web
5454
repository:
55-
url: 'https://github.com/xarray-contrib/xarray-tutorial'
55+
url: "https://github.com/xarray-contrib/xarray-tutorial"
5656
branch: main
5757

5858
# Bibliography
@@ -71,7 +71,7 @@ sphinx:
7171
config:
7272
language: en # accessibility
7373
# application/vnd.holoviews_load.v0+json, application/vnd.holoviews_exec.v0+json
74-
suppress_warnings: ['mystnb.unknown_mime_type', 'misc.highlighting_failure']
74+
suppress_warnings: ["mystnb.unknown_mime_type", "misc.highlighting_failure"]
7575
notfound_context:
7676
body: "<h1>Whoops! 404 Page Not Found</h1>\n\n<p>Sorry, this page doesn't exist. Many sections of this book have been updated recently.</p><p> Try the search box 🔎 to find what you're looking for!</p>"
7777
notfound_urls_prefix: /

advanced/apply_ufunc/automatic-vectorizing-numpy.ipynb

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "6849dcdc-3484-4f41-8b23-51613d36812f",
5+
"id": "0",
66
"metadata": {
77
"tags": []
88
},
@@ -13,7 +13,7 @@
1313
},
1414
{
1515
"cell_type": "markdown",
16-
"id": "afc56d28-6e55-4967-b27d-28e2cc539cc7",
16+
"id": "1",
1717
"metadata": {
1818
"tags": []
1919
},
@@ -100,7 +100,7 @@
100100
{
101101
"cell_type": "code",
102102
"execution_count": null,
103-
"id": "76aa13b8-5ced-4468-a72e-6b0a29172d6d",
103+
"id": "2",
104104
"metadata": {
105105
"tags": []
106106
},
@@ -123,7 +123,7 @@
123123
},
124124
{
125125
"cell_type": "markdown",
126-
"id": "81356724-6c1a-4d4a-9a32-bb906a9419b2",
126+
"id": "3",
127127
"metadata": {
128128
"tags": []
129129
},
@@ -139,7 +139,7 @@
139139
{
140140
"cell_type": "code",
141141
"execution_count": null,
142-
"id": "cb286fa0-deba-4929-b18a-79af5acb0b5b",
142+
"id": "4",
143143
"metadata": {
144144
"tags": []
145145
},
@@ -160,7 +160,7 @@
160160
},
161161
{
162162
"cell_type": "markdown",
163-
"id": "e3382658-14e1-4842-a618-ce7a27948c31",
163+
"id": "5",
164164
"metadata": {
165165
"tags": []
166166
},
@@ -175,7 +175,7 @@
175175
{
176176
"cell_type": "code",
177177
"execution_count": null,
178-
"id": "1476bcce-cc7b-4252-90dd-f45502dffb09",
178+
"id": "6",
179179
"metadata": {
180180
"tags": [
181181
"raises-exception"
@@ -198,7 +198,7 @@
198198
},
199199
{
200200
"cell_type": "markdown",
201-
"id": "1d1da9c2-a634-4920-890c-74d9bec9eab9",
201+
"id": "7",
202202
"metadata": {
203203
"tags": []
204204
},
@@ -213,7 +213,7 @@
213213
{
214214
"cell_type": "code",
215215
"execution_count": null,
216-
"id": "fa306dcf-eec3-425c-b278-42d15bbc0e4f",
216+
"id": "8",
217217
"metadata": {
218218
"tags": [
219219
"raises-exception"
@@ -239,7 +239,7 @@
239239
},
240240
{
241241
"cell_type": "markdown",
242-
"id": "6f5c928b-f8cb-4016-9d6d-39743f9c2976",
242+
"id": "9",
243243
"metadata": {
244244
"tags": []
245245
},
@@ -255,7 +255,7 @@
255255
},
256256
{
257257
"cell_type": "markdown",
258-
"id": "737cc6b4-522f-488c-9124-524cc42ebef3",
258+
"id": "10",
259259
"metadata": {
260260
"tags": []
261261
},
@@ -265,7 +265,7 @@
265265
},
266266
{
267267
"cell_type": "markdown",
268-
"id": "b6dac8da-8420-4fc4-9aeb-29b8999d4b37",
268+
"id": "11",
269269
"metadata": {
270270
"tags": []
271271
},
@@ -291,7 +291,7 @@
291291
{
292292
"cell_type": "code",
293293
"execution_count": null,
294-
"id": "d72fdd8c-44d2-4f6e-9fc4-7084e0e49986",
294+
"id": "12",
295295
"metadata": {
296296
"tags": [],
297297
"user_expressions": []
@@ -313,7 +313,7 @@
313313
},
314314
{
315315
"cell_type": "markdown",
316-
"id": "d81f399e-1649-4d4b-ad28-81cba8403210",
316+
"id": "13",
317317
"metadata": {
318318
"tags": []
319319
},

0 commit comments

Comments
 (0)
0