diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 12a54f1..e3d819a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,13 +16,13 @@ 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: 5.13.2 hooks: - id: isort name: isort @@ -30,20 +30,20 @@ repos: # Autoformat: Python code - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 24.10.0 hooks: - id: black # Lint: Python code - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.281 + rev: v0.8.6 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: v5.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 diff --git a/testing/jupyterlab/README.md b/testing/jupyterlab/README.md index 5fa1992..0cfeb4d 100644 --- a/testing/jupyterlab/README.md +++ b/testing/jupyterlab/README.md @@ -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 diff --git a/testing/notebooks/Lorenz.ipynb b/testing/notebooks/Lorenz.ipynb index 0a645bb..67f38cd 100644 --- a/testing/notebooks/Lorenz.ipynb +++ b/testing/notebooks/Lorenz.ipynb @@ -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", @@ -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", @@ -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)" ]