Skip to content
Merged
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
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: 26.3.1
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-r requirements.txt

# linting
black[jupyter] == 24.10.0
black[jupyter] == 26.3.1
flake8 ~= 7.3
flake8-docstrings >= 1.0.0, <= 1.7.0
flake8-eradicate >= 1.0.0, <= 1.5.0
Expand Down
9 changes: 3 additions & 6 deletions versioneer.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@

"""


try:
import configparser
except ImportError:
Expand Down Expand Up @@ -342,9 +341,9 @@ def get_config_from_root(root):
# configparser.NoOptionError (if it lacks "VCS="). See the docstring at
# the top of versioneer.py for instructions on writing your setup.cfg .
setup_cfg = os.path.join(root, "setup.cfg")
parser = configparser.SafeConfigParser()
parser = configparser.ConfigParser()
with open(setup_cfg) as f:
parser.readfp(f)
parser.read_file(f)
VCS = parser.get("versioneer", "VCS") # mandatory

def get(parser, name):
Expand Down Expand Up @@ -426,9 +425,7 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, env=
return stdout, p.returncode


LONG_VERSION_PY[
"git"
] = r'''
LONG_VERSION_PY["git"] = r'''
# This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
# feature). Distribution tarballs (built by setup.py sdist) and build
Expand Down
4 changes: 2 additions & 2 deletions zernipax/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def _dummy_jvp(nondiff_dr, x, xdot):

This is just the same function called with dx+1.
"""
(r, l, m) = x
(rdot, ldot, mdot) = xdot
r, l, m = x
rdot, ldot, mdot = xdot
f = dummy(r, l, m, nondiff_dr)
df = dummy(r, l, m, nondiff_dr + 1)
return f, (df.T * rdot).T
Expand Down
4 changes: 2 additions & 2 deletions zernipax/zernike.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,8 @@ def _jacobi_body_fun(kk, d_p_a_b_x):

@_jacobi.defjvp
def _jacobi_jvp(dx, x, xdot):
(n, alpha, beta, x) = x
(ndot, alphadot, betadot, xdot) = xdot
n, alpha, beta, x = x
ndot, alphadot, betadot, xdot = xdot
f = _jacobi(n, alpha, beta, x, dx)
df = _jacobi(n, alpha, beta, x, dx + 1)
return f, df * xdot
Expand Down
Loading