Skip to content

Commit ca6b491

Browse files
github-actions[bot]henryiiipre-commit-ci[bot]
authored
chore(deps): bump versions (#265)
* [create-pull-request] automated change * style: pre-commit fixes * fix: use pycon/ipython when needed Signed-off-by: Henry Schreiner <[email protected]> * fix: update furo and sphinx minimums Signed-off-by: Henry Schreiner <[email protected]> --------- Signed-off-by: Henry Schreiner <[email protected]> Co-authored-by: henryiii <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner <[email protected]>
1 parent dfab7c9 commit ca6b491

File tree

11 files changed

+35
-33
lines changed

11 files changed

+35
-33
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ repos:
1212
- id: black-jupyter
1313

1414
- repo: https://github.com/asottile/blacken-docs
15-
rev: "1.15.0"
15+
rev: "1.16.0"
1616
hooks:
1717
- id: blacken-docs
1818
additional_dependencies: [black==23.7.0]
1919

2020
- repo: https://github.com/astral-sh/ruff-pre-commit
21-
rev: "v0.0.284"
21+
rev: "v0.0.285"
2222
hooks:
2323
- id: ruff
2424
args: ["--fix", "--show-fixes"]
@@ -47,7 +47,7 @@ repos:
4747
- id: rst-inline-touching-normal
4848

4949
- repo: https://github.com/pre-commit/mirrors-mypy
50-
rev: "v1.5.0"
50+
rev: "v1.5.1"
5151
hooks:
5252
- id: mypy
5353
files: "(src|tests)"
@@ -62,7 +62,7 @@ repos:
6262
- types-PyYAML
6363

6464
- repo: https://github.com/pre-commit/mirrors-prettier
65-
rev: "v3.0.1"
65+
rev: "v3.0.2"
6666
hooks:
6767
- id: prettier
6868
types_or: [yaml, markdown, html, css, scss, javascript, json]

docs/pages/guides/style.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ markdown and restructured text. Note that because black is in
141141

142142
```yaml
143143
- repo: https://github.com/asottile/blacken-docs
144-
rev: "1.15.0"
144+
rev: "1.16.0"
145145
hooks:
146146
- id: blacken-docs
147147
additional_dependencies: [black==23.7.0]
@@ -162,7 +162,7 @@ pre-commit hook.
162162

163163
```yaml
164164
- repo: https://github.com/astral-sh/ruff-pre-commit
165-
rev: "v0.0.284"
165+
rev: "v0.0.285"
166166
hooks:
167167
- id: ruff
168168
args: ["--fix", "--show-fixes"]
@@ -480,7 +480,7 @@ The MyPy addition for pre-commit:
480480

481481
```yaml
482482
- repo: https://github.com/pre-commit/mirrors-mypy
483-
rev: "v1.5.0"
483+
rev: "v1.5.1"
484484
hooks:
485485
- id: mypy
486486
files: src
@@ -721,7 +721,7 @@ number of different file types. An example of usage:
721721

722722
```yaml
723723
- repo: https://github.com/pre-commit/mirrors-prettier
724-
rev: "v3.0.1"
724+
rev: "v3.0.2"
725725
hooks:
726726
- id: prettier
727727
types_or: [yaml, markdown, html, css, scss, javascript, json]

docs/pages/patterns/data_files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ are two concrete examples of how to use Pooch in this way in a project. It is
188188
also possible to use Pooch in a simpler download script to just fetch a single
189189
file as in the following small example:
190190

191-
```py
191+
```python
192192
import pooch
193193

194194
file_path = pooch.retrieve(

docs/pages/principles/design.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ not needed is the following: changing states.
6262
It is often tempting to invent a custom class to express a workflow, along these
6363
lines.
6464

65-
```py
65+
```python
6666
data = Data()
6767
data.load_data()
6868
data.prepare()
@@ -80,7 +80,7 @@ states.
8080
One alternative replace `Data` with multiple immutable classes representing the
8181
state at each step.
8282

83-
```py
83+
```python
8484
empty_data = EmptyData()
8585
loaded_data = empty_data.load_data()
8686
prepared_data = loaded_data.prepare()
@@ -90,7 +90,7 @@ computed_data.plot()
9090

9191
We could avoid naming the temporaries, too:
9292

93-
```py
93+
```python
9494
computed_data = EmptyData().load_data().prepare().do_calculations()
9595
computed_data.plot()
9696
```
@@ -119,9 +119,10 @@ Protocols to make this type of use much easier).
119119
When you want to group data together into one object for convenience, consider
120120
dataclasses.
121121

122-
```py
122+
```python
123123
from dataclasses import dataclass
124124

125+
125126
@dataclass
126127
class Data:
127128
angle: float

docs/pages/tutorials/docs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ mkdir docs
5050
In this directory, we will create a minimal Sphinx configuration file at
5151
`docs/conf.py`.
5252

53-
```py
53+
```python
5454
# content of docs/conf.py
5555

5656
project = "example"
@@ -159,7 +159,7 @@ copy/paste these examples.
159159

160160
In `docs/conf.py`, add to the list of extensions.
161161

162-
```py
162+
```python
163163
extensions = [
164164
# whatever you already have in here...
165165
"sphinx.ext.autodoc",

docs/pages/tutorials/module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ maintainable, reusable, and/or shareable form.
2424

2525
Here is the code:
2626

27-
```py
27+
```python
2828
# contents of refraction.py
2929

3030
import numpy as np

docs/pages/tutorials/packaging.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,22 +112,22 @@ re-installing it each time.
112112
Then, in a Python shell or Jupyter Notebook, import your package and call the
113113
function.
114114

115-
```py
115+
```pycon
116116
>>> from example.refraction import snell
117117
>>> import numpy as np
118-
>>> snell(np.pi/4, 1.00, 1.33)
118+
>>> snell(np.pi / 4, 1.00, 1.33)
119119
1.2239576240104186
120120
```
121121

122122
The docstring can be viewed with `help()`.
123123

124-
```py
124+
```pycon
125125
>>> help(snell)
126126
```
127127

128128
Or, in Jupyter or Python, use `?` as a shortcut.
129129

130-
```py
130+
```ipython
131131
In [1]: snell?
132132
```
133133

docs/pages/tutorials/test.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ example
5656
5757
Write some example tests into `tests/test_snell.py`, such as the following:
5858

59-
```py
59+
```python
6060
# contents of tests/test_snell.py
6161

6262
import numpy as np
@@ -68,18 +68,20 @@ from example.refraction import snell
6868
# For any indexes, a ray normal to the surface should not bend.
6969
# We'll try a couple different combinations of indexes....
7070

71+
7172
def test_perpendicular_1():
7273
actual = snell(0, 2.00, 3.00)
7374
assert actual == pytest.approx(0)
7475

76+
7577
def test_perpendicular_2():
7678
actual = snell(0, 3.00, 2.00)
7779
assert actual == pytest.approx(0)
7880

7981

8082
def test_air_water():
8183
n_air, n_water = 1.00, 1.33
82-
actual = snell(np.pi/4, n_air, n_water)
84+
actual = snell(np.pi / 4, n_air, n_water)
8385
expected = 0.5605584137424605
8486
assert actual == pytest.approx(expected)
8587
```

{{cookiecutter.project_name}}/.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- id: black-jupyter
1010

1111
- repo: https://github.com/asottile/blacken-docs
12-
rev: "1.15.0"
12+
rev: "1.16.0"
1313
hooks:
1414
- id: blacken-docs
1515
additional_dependencies: [black==23.7.0]
@@ -38,14 +38,14 @@ repos:
3838
- id: rst-inline-touching-normal
3939

4040
- repo: https://github.com/pre-commit/mirrors-prettier
41-
rev: "v3.0.1"
41+
rev: "v3.0.2"
4242
hooks:
4343
- id: prettier
4444
types_or: [yaml, markdown, html, css, scss, javascript, json]
4545
args: [--prose-wrap=always]
4646

4747
- repo: https://github.com/astral-sh/ruff-pre-commit
48-
rev: "v0.0.284"
48+
rev: "v0.0.285"
4949
hooks:
5050
- id: ruff
5151
args: ["--fix", "--show-fixes"]
@@ -71,7 +71,7 @@ repos:
7171
{%- endif %}
7272

7373
- repo: https://github.com/pre-commit/mirrors-mypy
74-
rev: "v1.5.0"
74+
rev: "v1.5.1"
7575
hooks:
7676
- id: mypy
7777
files: src|tests

{{cookiecutter.project_name}}/pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ classifiers = [
115115
[tool.poetry.dependencies]
116116
python = ">=3.8"
117117

118-
furo = { version = ">=22", optional = true }
118+
furo = { version = ">=2023.08.17", optional = true }
119119
myst_parser = { version = ">=0.13", optional = true }
120120
pytest = { version = ">=6", optional = true }
121121
pytest-cov = { version = ">=3", optional = true }
122-
sphinx = { version = ">=4.0", optional = true }
122+
sphinx = { version = ">=7.0", optional = true }
123123
sphinx_copybutton = { version = ">=0.3.0", optional = true }
124124
sphinx-autodoc-typehints = { version = "*", optional = true }
125125

@@ -201,12 +201,11 @@ dev = [
201201
"pytest-cov >=3",
202202
]
203203
docs = [
204-
"sphinx>=4.0",
204+
"sphinx>=7.0",
205205
"myst_parser>=0.13",
206-
"sphinx_book_theme>=0.1.0",
207206
"sphinx_copybutton",
208207
"sphinx_autodoc_typehints",
209-
"furo",
208+
"furo>=2023.08.17",
210209
]
211210

212211
[project.urls]

0 commit comments

Comments
 (0)