diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1ea2236..63af80b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,13 +11,13 @@ repos: - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.12.0 + rev: 26.1.0 hooks: - id: black args: [--line-length=100] - repo: https://github.com/kynan/nbstripout - rev: 0.8.2 + rev: 0.9.0 hooks: - id: nbstripout @@ -27,7 +27,7 @@ repos: - id: add-trailing-comma - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.14.11' + rev: 'v0.14.14' hooks: - id: ruff @@ -37,7 +37,7 @@ repos: - id: mypy - repo: https://github.com/streetsidesoftware/cspell-cli - rev: v9.4.0 + rev: v9.6.0 hooks: - id: cspell files: src/|docs/(.+).md|docs/source/(.+).ipynb|tests|README.md diff --git a/src/ap_features/_numba.py b/src/ap_features/_numba.py index a07cf6c..d5a9d70 100644 --- a/src/ap_features/_numba.py +++ b/src/ap_features/_numba.py @@ -11,7 +11,6 @@ from .utils import NUM_COST_TERMS - # float_3D_array = numba.types.Array(numba.float64, 3, "C") # float_2D_array = numba.types.Array(numba.float64, 2, "C") # float_1D_array = numba.types.Array(numba.float64, 1, "C") diff --git a/src/ap_features/background.py b/src/ap_features/background.py index a069dee..9e2fc13 100644 --- a/src/ap_features/background.py +++ b/src/ap_features/background.py @@ -7,7 +7,6 @@ from .utils import Array - logger = logging.getLogger(__name__) diff --git a/src/ap_features/features.py b/src/ap_features/features.py index d666d41..4ebd53b 100644 --- a/src/ap_features/features.py +++ b/src/ap_features/features.py @@ -879,14 +879,14 @@ def sigmoid(x, k, x0): popt, pcov = curve_fit(sigmoid, t_upstroke, upstroke, method="dogbox") k, x0 = popt - index = None # type:ignore + index = None # type: ignore s = sigmoid(t_upstroke, k, x0) value = k / 2 time_APD20_to_APD80 = apd_up_xy(s, t_upstroke, 20, 80) else: # Find max upstroke - index = np.argmax(np.diff(upstroke)) # type:ignore + index = np.argmax(np.diff(upstroke)) # type: ignore value = np.max(np.diff(upstroke)) x0 = None s = None diff --git a/tests/test_features.py b/tests/test_features.py index cf8d2fe..70aba9b 100644 --- a/tests/test_features.py +++ b/tests/test_features.py @@ -5,7 +5,6 @@ import numpy as np import pytest - here = os.path.dirname(os.path.abspath(__file__))