Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #228

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"build": {
"dockerfile": "./Dockerfile",
"context": "../conda"
"context": "../conda",
},
"postCreateCommand": {
"vscode": "mkdir ${containerWorkspaceFolder}/.vscode && cp ${containerWorkspaceFolder}/.devcontainer/tasks.json ${containerWorkspaceFolder}/.vscode/tasks.json"
"vscode": "mkdir ${containerWorkspaceFolder}/.vscode && cp ${containerWorkspaceFolder}/.devcontainer/tasks.json ${containerWorkspaceFolder}/.vscode/tasks.json",
},
"hostRequirements": {
"cpus": 2
"cpus": 2,
},
"customizations": {
"codespaces": {
"openFiles": ["README.md"]
"openFiles": ["README.md"],
},
"vscode": {
"extensions": ["ms-toolsai.jupyter", "ms-python.python"]
}
}
"extensions": ["ms-toolsai.jupyter", "ms-python.python"],
},
},
}
14 changes: 7 additions & 7 deletions .devcontainer/scipy2023/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"build": {
"dockerfile": "../Dockerfile",
"context": "../../conda"
"context": "../../conda",
},
"postCreateCommand": {
"jupyterlab": "mkdir /home/jovyan/.jupyter && cp ${containerWorkspaceFolder}/.devcontainer/scipy2023/jupyter_lab_config.py /home/jovyan/.jupyter/jupyter_lab_config.py",
"vscode": "mkdir ${containerWorkspaceFolder}/.vscode && cp ${containerWorkspaceFolder}/.devcontainer/scipy2023/tasks.json ${containerWorkspaceFolder}/.vscode/tasks.json"
"vscode": "mkdir ${containerWorkspaceFolder}/.vscode && cp ${containerWorkspaceFolder}/.devcontainer/scipy2023/tasks.json ${containerWorkspaceFolder}/.vscode/tasks.json",
},
"hostRequirements": {
"cpus": 2
"cpus": 2,
},
"customizations": {
"codespaces": {
"openFiles": ["workshops/scipy2023/README.md"]
"openFiles": ["workshops/scipy2023/README.md"],
},
"vscode": {
"extensions": ["ms-toolsai.jupyter", "ms-python.python"]
}
}
"extensions": ["ms-toolsai.jupyter", "ms-python.python"],
},
},
}
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
updates:
- package-ecosystem: 'docker'
directory: '/.devcontainer'
- package-ecosystem: "docker"
directory: "/.devcontainer"
schedule:
interval: 'daily'
interval: "daily"
2 changes: 1 addition & 1 deletion .github/workflows/qaqc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
with:
check_filenames: true
check_hidden: true
skip: '.git,*.js,qaqc.yml'
skip: ".git,*.js,qaqc.yml"
ignore_words_list: hist,nd

# borrowed from https://github.com/ProjectPythia/pythia-foundations/blob/main/.github/workflows/link-checker.yaml
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- id: double-quote-string-fixer

- repo: https://github.com/psf/black
rev: 23.10.1
rev: 24.1.1
hooks:
- id: black
- id: black-jupyter
Expand All @@ -24,22 +24,22 @@ repos:
- id: blackdoc

- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
rev: v4.0.0-alpha.8
hooks:
- id: prettier

- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
rev: 0.7.1
hooks:
- id: nbstripout
args: [--extra-keys=metadata.kernelspec metadata.language_info.version]
12 changes: 6 additions & 6 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Learn more at https://jupyterbook.org/customize/config.html
title: ''
title: ""
author: The Xarray Community
copyright: '2023'
copyright: "2023"
logo: images/logo.png
only_build_toc_files: true

Expand Down Expand Up @@ -35,7 +35,7 @@ parse:
# Force re-execution of notebooks on each build.
# See https://jupyterbook.org/content/execute.html
execute:
execute_notebooks: 'cache'
execute_notebooks: "cache"
allow_errors: false
# Per-cell notebook execution limit (seconds)
timeout: 300
Expand All @@ -48,11 +48,11 @@ latex:
# Configure your Binder links, such as the URL of the BinderHub.
launch_buttons:
notebook_interface: jupyterlab
binderhub_url: 'https://mybinder.org'
binderhub_url: "https://mybinder.org"

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

# Bibliography
Expand All @@ -71,7 +71,7 @@ sphinx:
config:
language: en # accessibility
# application/vnd.holoviews_load.v0+json, application/vnd.holoviews_exec.v0+json
suppress_warnings: ['mystnb.unknown_mime_type', 'misc.highlighting_failure']
suppress_warnings: ["mystnb.unknown_mime_type", "misc.highlighting_failure"]
notfound_context:
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>"
notfound_urls_prefix: /
Expand Down
28 changes: 14 additions & 14 deletions advanced/apply_ufunc/automatic-vectorizing-numpy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "6849dcdc-3484-4f41-8b23-51613d36812f",
"id": "0",
"metadata": {
"tags": []
},
Expand All @@ -13,7 +13,7 @@
},
{
"cell_type": "markdown",
"id": "afc56d28-6e55-4967-b27d-28e2cc539cc7",
"id": "1",
"metadata": {
"tags": []
},
Expand Down Expand Up @@ -100,7 +100,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "76aa13b8-5ced-4468-a72e-6b0a29172d6d",
"id": "2",
"metadata": {
"tags": []
},
Expand All @@ -123,7 +123,7 @@
},
{
"cell_type": "markdown",
"id": "81356724-6c1a-4d4a-9a32-bb906a9419b2",
"id": "3",
"metadata": {
"tags": []
},
Expand All @@ -139,7 +139,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "cb286fa0-deba-4929-b18a-79af5acb0b5b",
"id": "4",
"metadata": {
"tags": []
},
Expand All @@ -160,7 +160,7 @@
},
{
"cell_type": "markdown",
"id": "e3382658-14e1-4842-a618-ce7a27948c31",
"id": "5",
"metadata": {
"tags": []
},
Expand All @@ -175,7 +175,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "1476bcce-cc7b-4252-90dd-f45502dffb09",
"id": "6",
"metadata": {
"tags": [
"raises-exception"
Expand All @@ -198,7 +198,7 @@
},
{
"cell_type": "markdown",
"id": "1d1da9c2-a634-4920-890c-74d9bec9eab9",
"id": "7",
"metadata": {
"tags": []
},
Expand All @@ -213,7 +213,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "fa306dcf-eec3-425c-b278-42d15bbc0e4f",
"id": "8",
"metadata": {
"tags": [
"raises-exception"
Expand All @@ -239,7 +239,7 @@
},
{
"cell_type": "markdown",
"id": "6f5c928b-f8cb-4016-9d6d-39743f9c2976",
"id": "9",
"metadata": {
"tags": []
},
Expand All @@ -255,7 +255,7 @@
},
{
"cell_type": "markdown",
"id": "737cc6b4-522f-488c-9124-524cc42ebef3",
"id": "10",
"metadata": {
"tags": []
},
Expand All @@ -265,7 +265,7 @@
},
{
"cell_type": "markdown",
"id": "b6dac8da-8420-4fc4-9aeb-29b8999d4b37",
"id": "11",
"metadata": {
"tags": []
},
Expand All @@ -291,7 +291,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "d72fdd8c-44d2-4f6e-9fc4-7084e0e49986",
"id": "12",
"metadata": {
"tags": [],
"user_expressions": []
Expand All @@ -313,7 +313,7 @@
},
{
"cell_type": "markdown",
"id": "d81f399e-1649-4d4b-ad28-81cba8403210",
"id": "13",
"metadata": {
"tags": []
},
Expand Down
Loading
Loading