From a7dae9e8ba76b6701eae2ac7052518c8169328f7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 20:41:16 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black-pre-commit-mirror: 25.12.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/25.12.0...26.1.0) - [github.com/kynan/nbstripout: 0.8.2 → 0.9.0](https://github.com/kynan/nbstripout/compare/0.8.2...0.9.0) - [github.com/astral-sh/ruff-pre-commit: v0.14.11 → v0.15.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.11...v0.15.0) - [github.com/streetsidesoftware/cspell-cli: v9.4.0 → v9.6.0](https://github.com/streetsidesoftware/cspell-cli/compare/v9.4.0...v9.6.0) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1ea2236..373570d 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.15.0' 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 From 0c51191e12d3945eb80b55edd5ce6b5f909b2003 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 20:41:34 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/ap_features/_numba.py | 1 - src/ap_features/background.py | 1 - src/ap_features/features.py | 4 ++-- tests/test_features.py | 1 - 4 files changed, 2 insertions(+), 5 deletions(-) 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__))