From ed54c638343514726e1fe75b9f2dec509bc37ce6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 31 Aug 2024 16:03:36 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/nwbinspector/_nwb_inspection.py | 2 -- src/nwbinspector/_nwbinspector_cli.py | 4 +--- tests/read_nwbfile_streaming_tests.py | 7 ------- tests/streaming_tests.py | 5 ++--- 4 files changed, 3 insertions(+), 15 deletions(-) diff --git a/src/nwbinspector/_nwb_inspection.py b/src/nwbinspector/_nwb_inspection.py index c58059c6c..f3aa7c34d 100644 --- a/src/nwbinspector/_nwb_inspection.py +++ b/src/nwbinspector/_nwb_inspection.py @@ -1,6 +1,5 @@ """Primary functions for inspecting NWBFiles.""" -import re import importlib import traceback from pathlib import Path @@ -16,7 +15,6 @@ from . import available_checks, configure_checks from ._registration import InspectorMessage, Importance -from .tools import get_s3_urls_and_dandi_paths from .utils import ( FilePathType, PathType, diff --git a/src/nwbinspector/_nwbinspector_cli.py b/src/nwbinspector/_nwbinspector_cli.py index 7593fdf88..4a144cc08 100644 --- a/src/nwbinspector/_nwbinspector_cli.py +++ b/src/nwbinspector/_nwbinspector_cli.py @@ -1,12 +1,10 @@ """Primary functions for inspecting NWBFiles.""" import os -import re import json -import warnings import importlib from pathlib import Path -from typing import Union, Literal +from typing import Union import click diff --git a/tests/read_nwbfile_streaming_tests.py b/tests/read_nwbfile_streaming_tests.py index 56f22f316..37c5a268e 100644 --- a/tests/read_nwbfile_streaming_tests.py +++ b/tests/read_nwbfile_streaming_tests.py @@ -1,16 +1,9 @@ """All tests that specifically require streaming to be enabled (i.e., ROS3 version of h5py, fsspec, etc.).""" -import os import pytest -from shutil import rmtree -from tempfile import mkdtemp -from pathlib import Path -from unittest import TestCase -from nwbinspector import Importance, inspect_all, InspectorMessage, inspect_dandiset from nwbinspector.tools import read_nwbfile from nwbinspector.testing import check_streaming_tests_enabled, check_hdf5_io_open -from nwbinspector.utils import FilePathType STREAMING_TESTS_ENABLED, DISABLED_STREAMING_TESTS_REASON = check_streaming_tests_enabled() diff --git a/tests/streaming_tests.py b/tests/streaming_tests.py index e9c3eda07..3a209491a 100644 --- a/tests/streaming_tests.py +++ b/tests/streaming_tests.py @@ -7,9 +7,8 @@ from pathlib import Path from unittest import TestCase -from nwbinspector import Importance, inspect_all, InspectorMessage, inspect_dandiset -from nwbinspector.tools import read_nwbfile -from nwbinspector.testing import check_streaming_tests_enabled, check_hdf5_io_open +from nwbinspector import Importance, InspectorMessage, inspect_dandiset +from nwbinspector.testing import check_streaming_tests_enabled from nwbinspector.utils import FilePathType