Skip to content
Open
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
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,34 @@ ci:
repos:
# Autoformat: markdown, yaml to ensure that it doesn't need to be updated in other repos
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0
rev: v4.0.0-alpha.8
hooks:
- id: prettier

# Autoformat: Python code - sort imports
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 7.0.0
hooks:
- id: isort
name: isort
args: ["--profile", "black"]

# Autoformat: Python code
- repo: https://github.com/psf/black
rev: 23.7.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.9.0
hooks:
- id: black

# Lint: Python code
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.281
rev: v0.14.3
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

# Misc...
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v6.0.0
# ref: https://github.com/pre-commit/pre-commit-hooks#hooks-available
hooks:
# Autoformat: Makes sure files end in a newline and only a newline
Expand Down
2 changes: 1 addition & 1 deletion testing/jupyterlab/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ You can run tests locally on your machine, or remotely in the cloud.
4. Once you have entered all the information, click on the **Run workflow** button.

[^1]: `main` is the default branch for JupyterLab hence this is the default value for the `ref` parameter.

[^2]: This is useful if you want to test the accessibility of a package that is not part of the JupyterLab repository. See the [Testing Changes to External Pages](https://jupyterlab.readthedocs.io/en/latest/developer/contributing.html#id17) section of JupyterLab's documentation for more information.

#### Inspecting the test results
Expand Down Expand Up @@ -101,7 +102,6 @@ Follow these steps to download and read the reports locally:
```

1. Install JupyterLab version 3 or 4. There are several ways to do this.

1. You can [install a pre-built version of JupyterLab](https://jupyterlab.readthedocs.io/en/latest/getting_started/installation.html).
1. Or you can [build JupyterLab from source](https://jupyterlab.readthedocs.io/en/latest/developer/contributing.html#installing-jupyterlab).
When you've finished, you should be able to run `jupyter lab --version` from the command line.
Expand Down
6 changes: 3 additions & 3 deletions testing/notebooks/Lorenz.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
" ax.set_xlim((-25, 25))\n",
" ax.set_ylim((-35, 35))\n",
" ax.set_zlim((5, 55))\n",
" \n",
"\n",
" def lorenz_deriv(x_y_z, t0, sigma=sigma, beta=beta, rho=rho):\n",
" \"\"\"Compute the time-derivative of a Lorenz system.\"\"\"\n",
" x, y, z = x_y_z\n",
Expand All @@ -116,7 +116,7 @@
" t = np.linspace(0, max_time, int(250*max_time))\n",
" x_t = np.asarray([integrate.odeint(lorenz_deriv, x0i, t)\n",
" for x0i in x0])\n",
" \n",
"\n",
" # choose a different color for each trajectory\n",
" colors = plt.cm.viridis(np.linspace(0, 1, N))\n",
"\n",
Expand Down Expand Up @@ -160,7 +160,7 @@
"metadata": {},
"outputs": [],
"source": [
"w = interactive(solve_lorenz, angle=(0.,360.), max_time=(0.1, 4.0), \n",
"w = interactive(solve_lorenz, angle=(0.,360.), max_time=(0.1, 4.0),\n",
" N=(0,50), sigma=(0.0,50.0), rho=(0.0,50.0))\n",
"display(w)"
]
Expand Down
Loading