Skip to content

Commit 0ff2618

Browse files
authored
pre commit update (#690)
* pre-commit autoupdate * update pre-commit config
1 parent 498eef5 commit 0ff2618

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ ci:
33

44
repos:
55
- repo: https://github.com/psf/black
6-
rev: 23.7.0
6+
rev: 24.4.2
77
hooks:
88
- id: black-jupyter
99
- repo: https://github.com/nbQA-dev/nbQA
10-
rev: 1.7.0
10+
rev: 1.8.5
1111
hooks:
1212
- id: nbqa-isort
1313
additional_dependencies: [isort==5.6.4]
@@ -99,7 +99,7 @@ repos:
9999
language: pygrep
100100
types_or: [markdown, rst, jupyter]
101101
- repo: https://github.com/mwouts/jupytext
102-
rev: v1.15.1
102+
rev: v1.16.3
103103
hooks:
104104
- id: jupytext
105105
files: ^examples/.+\.ipynb$

examples/ode_models/ODE_with_manual_gradients.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@
189189
" ret = np.zeros(\n",
190190
" (self._n_states, self._n_odeparams + self._n_ivs)\n",
191191
" ) # except the following entries\n",
192-
" ret[\n",
193-
" 0, 0\n",
194-
" ] = X # \\frac{\\partial [\\alpha X - \\beta XY]}{\\partial \\alpha}, and so on...\n",
192+
" ret[0, 0] = (\n",
193+
" X # \\frac{\\partial [\\alpha X - \\beta XY]}{\\partial \\alpha}, and so on...\n",
194+
" )\n",
195195
" ret[0, 1] = -X * Y\n",
196196
" ret[1, 2] = -Y\n",
197197
" ret[1, 3] = X * Y\n",

examples/ode_models/ODE_with_manual_gradients.myst.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ class LotkaVolterraModel:
157157
ret = np.zeros(
158158
(self._n_states, self._n_odeparams + self._n_ivs)
159159
) # except the following entries
160-
ret[
161-
0, 0
162-
] = X # \frac{\partial [\alpha X - \beta XY]}{\partial \alpha}, and so on...
160+
ret[0, 0] = (
161+
X # \frac{\partial [\alpha X - \beta XY]}{\partial \alpha}, and so on...
162+
)
163163
ret[0, 1] = -X * Y
164164
ret[1, 2] = -Y
165165
ret[1, 3] = X * Y

examples/samplers/samplers_mvnormal.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
normalized effective sampling rates.
77
"""
88

9-
109
import time
1110

1211
import arviz as az

scripts/rerun.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
python scripts/rerun.py --fp_notebook=examples/case_studies/BEST.ipynb --commit_to=rerun-best --push_to=mine
1515
```
1616
"""
17+
1718
import argparse
1819
import logging
1920
import pathlib

sphinxext/thumbnail_extractor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
Modified from the seaborn project, which modified the mpld3 project.
55
"""
6+
67
import base64
78
import json
89
import os

0 commit comments

Comments
 (0)