Skip to content

Commit 7df99f7

Browse files
Merge pull request #774 from jarrodmillman/pre-commit-7.3.24
Update pre-commits
2 parents 80bfcf8 + b1546eb commit 7df99f7

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.git-blame-ignore-revs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ d6b447cab8c40aa47dc675a0f4349ae254e8b3ce
88
d8966d848af75751823e825eb76c5bbff58f5c07
99
4902d468c9606836b26b393379df4f49208ea847
1010
1fd0ce6759be32be38bbfab32e83d157a82dfe25
11+
406488494019fb199474fea7f1694e9f0d0347bc

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ repos:
3232
args: [--no-pycodestyle, --max-line-length=88]
3333

3434
- repo: https://github.com/astral-sh/ruff-pre-commit
35-
rev: 02609a0003fd4903bd7f43852e5dfc82242a96db # frozen: v0.4.9
35+
rev: 1dc9eb131c2ea4816c708e4d85820d2cc8542683 # frozen: v0.5.0
3636
hooks:
3737
- id: ruff
3838
args: ["--fix", "--show-fixes", "--exit-non-zero-on-fix"]

advanced/scipy_sparse/examples/lobpcg_sakurai.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ def sakurai(n):
4949
)
5050
data.append(time.clock() - tt)
5151
print("Results by LOBPCG for n=" + str(n))
52-
print("")
52+
print()
5353
print(eigs)
54-
print("")
54+
print()
5555
print("Exact eigenvalues")
56-
print("")
56+
print()
5757
print(w_ex[:m])
58-
print("")
58+
print()
5959
print("Elapsed time", data[0])
6060
plt.loglog(np.arange(1, n + 1), w_ex, "b.")
6161
plt.xlabel(r"Number $i$")

intro/scipy/examples/solutions/plot_image_blur.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
# First a 1-D Gaussian
3232
t = np.linspace(-10, 10, 30)
3333
bump = np.exp(-0.1 * t**2)
34-
bump /= np.trapz(bump) # normalize the integral to 1
34+
bump /= np.trapezoid(bump) # normalize the integral to 1
3535

3636
# make a 2-D kernel out of it
3737
kernel = bump[:, np.newaxis] * bump[np.newaxis, :]

0 commit comments

Comments
 (0)