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 #39

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
10 changes: 5 additions & 5 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: 5.13.2
hooks:
- id: isort
name: isort
args: ["--profile", "black"]

# 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.7.2
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
Expand Down
1 change: 1 addition & 0 deletions 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
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