Skip to content

Commit

Permalink
Bump black version
Browse files Browse the repository at this point in the history
  • Loading branch information
f0uriest committed Jul 26, 2024
1 parent bd34f08 commit 37cb50a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 22.10.0
rev: 24.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down
2 changes: 2 additions & 0 deletions interpax/_fd_derivs.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def approx_df(
First derivative of f with respect to x.
"""
# noqa:D202

# close over static args to deal with non-jittable kwargs
def fun(x, f):
return _approx_df(x, f, method, axis, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sphinx-github-style >= 1.0, <= 1.1


# linting
black == 22.10.0
black == 24.3.0
flake8 >= 5.0.0, <=6.0.0
flake8-docstrings >= 1.0.0, <=2.0.0
flake8-eradicate >= 1.0.0, <=2.0.0
Expand Down
4 changes: 1 addition & 3 deletions tests/test_interpolate.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,7 @@ def test_interp3d_vector_valued(self):
zp = np.linspace(0, 3, 25)
xxp, yyp, zzp = np.meshgrid(xp, yp, zp, indexing="ij")

f = lambda x, y, z: np.array(
[np.sin(x) * np.cos(y) * z**2, 0.1 * (x + y - z)]
)
f = lambda x, y, z: np.array([np.sin(x) * np.cos(y) * z**2, 0.1 * (x + y - z)])
fp = f(xxp.T, yyp.T, zzp.T).T

fq = interp3d(x, y, z, xp, yp, zp, fp, method="nearest")
Expand Down

0 comments on commit 37cb50a

Please sign in to comment.