From c1f20ed7aa848958de4529e90cad352322816de1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 21 Nov 2024 16:36:40 +0000 Subject: [PATCH 1/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/unit_tests/test_general.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/unit_tests/test_general.py b/tests/unit_tests/test_general.py index fa074d7e5..d386ad612 100644 --- a/tests/unit_tests/test_general.py +++ b/tests/unit_tests/test_general.py @@ -54,7 +54,6 @@ def test_check_description_missing(): def test_check_description_feature_extraction(): import numpy as np - from pynwb.ecephys import FeatureExtraction from pynwb.testing.mock.ecephys import mock_ElectrodeTable @@ -68,10 +67,8 @@ def test_check_description_feature_extraction(): name="PCA_features", electrodes=dynamic_table_region, description=["PC1", "PC2", "PC3", "PC4"], - times=[.033, .066, .099], + times=[0.033, 0.066, 0.099], features=np.random.rand(3, 5, 4), # time, channel, feature ) assert check_description(neurodata_object=feature_extraction) is None - - From 3dab08a847e2e087981bfd517cf869249d41bb84 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 21 Nov 2024 09:17:51 -0800 Subject: [PATCH 2/2] [pre-commit.ci] pre-commit autoupdate (#530) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ryan Ly --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 65f2cab07..6c8f7de7a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.9 + rev: v0.7.4 hooks: - id: ruff args: [ --fix ] @@ -24,7 +24,7 @@ repos: - tomli - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 + rev: v1.13.0 hooks: - id: mypy additional_dependencies: ["types-PyYAML", "types-setuptools"]