Skip to content

pre-commit autoupdate (except jupytext) #641

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

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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ ci:

repos:
- repo: https://github.com/psf/black
rev: 23.7.0
rev: 24.2.0
hooks:
- id: black-jupyter
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
rev: 1.7.1
hooks:
- id: nbqa-isort
additional_dependencies: [isort==5.6.4]
Expand Down
2 changes: 0 additions & 2 deletions examples/howto/blackbox_external_likelihood_numpy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@
"source": [
"# define a pytensor Op for our likelihood function\n",
"class LogLike(pt.Op):\n",
"\n",
" \"\"\"\n",
" Specify what type of object will be passed and returned to the Op when it is\n",
" called. In our case we will be passing it a vector of values (the parameters\n",
Expand Down Expand Up @@ -446,7 +445,6 @@
"\n",
"\n",
"class LogLikeGrad(pt.Op):\n",
"\n",
" \"\"\"\n",
" This Op will be called with a vector of values and also return a vector of\n",
" values - the gradients in each dimension.\n",
Expand Down
2 changes: 0 additions & 2 deletions examples/howto/blackbox_external_likelihood_numpy.myst.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ So, what we actually need to do is create a {ref}`PyTensor Op <pytensor:creating
```{code-cell} ipython3
# define a pytensor Op for our likelihood function
class LogLike(pt.Op):

"""
Specify what type of object will be passed and returned to the Op when it is
called. In our case we will be passing it a vector of values (the parameters
Expand Down Expand Up @@ -294,7 +293,6 @@ class LogLikeWithGrad(pt.Op):


class LogLikeGrad(pt.Op):

"""
This Op will be called with a vector of values and also return a vector of
values - the gradients in each dimension.
Expand Down
6 changes: 3 additions & 3 deletions examples/ode_models/ODE_with_manual_gradients.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@
" ret = np.zeros(\n",
" (self._n_states, self._n_odeparams + self._n_ivs)\n",
" ) # except the following entries\n",
" ret[\n",
" 0, 0\n",
" ] = X # \\frac{\\partial [\\alpha X - \\beta XY]}{\\partial \\alpha}, and so on...\n",
" ret[0, 0] = (\n",
" X # \\frac{\\partial [\\alpha X - \\beta XY]}{\\partial \\alpha}, and so on...\n",
" )\n",
" ret[0, 1] = -X * Y\n",
" ret[1, 2] = -Y\n",
" ret[1, 3] = X * Y\n",
Expand Down
6 changes: 3 additions & 3 deletions examples/ode_models/ODE_with_manual_gradients.myst.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ class LotkaVolterraModel:
ret = np.zeros(
(self._n_states, self._n_odeparams + self._n_ivs)
) # except the following entries
ret[
0, 0
] = X # \frac{\partial [\alpha X - \beta XY]}{\partial \alpha}, and so on...
ret[0, 0] = (
X # \frac{\partial [\alpha X - \beta XY]}{\partial \alpha}, and so on...
)
ret[0, 1] = -X * Y
ret[1, 2] = -Y
ret[1, 3] = X * Y
Expand Down
1 change: 0 additions & 1 deletion examples/samplers/samplers_mvnormal.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
normalized effective sampling rates.
"""


import time

import arviz as az
Expand Down
1 change: 1 addition & 0 deletions scripts/rerun.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
python scripts/rerun.py --fp_notebook=examples/case_studies/BEST.ipynb --commit_to=rerun-best --push_to=mine
```
"""

import argparse
import logging
import pathlib
Expand Down
1 change: 1 addition & 0 deletions sphinxext/thumbnail_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Modified from the seaborn project, which modified the mpld3 project.
"""

import base64
import json
import os
Expand Down