diff --git a/numcodecs/tests/test_entrypoints.py b/numcodecs/tests/test_entrypoints.py index 4946c7ae..43503ec3 100644 --- a/numcodecs/tests/test_entrypoints.py +++ b/numcodecs/tests/test_entrypoints.py @@ -8,7 +8,7 @@ here = os.path.abspath(os.path.dirname(__file__)) -@pytest.fixture() +@pytest.fixture def set_path(): sys.path.append(here) numcodecs.registry.run_entrypoints() diff --git a/numcodecs/tests/test_pcodec.py b/numcodecs/tests/test_pcodec.py index 6531074a..c10549bd 100644 --- a/numcodecs/tests/test_pcodec.py +++ b/numcodecs/tests/test_pcodec.py @@ -57,8 +57,8 @@ def test_config(): def test_invalid_config_error(): + codec = PCodec(mode_spec='bogus') with pytest.raises(ValueError): - codec = PCodec(mode_spec='bogus') check_encode_decode_array_to_bytes(arrays[0], codec) diff --git a/numcodecs/tests/test_shuffle.py b/numcodecs/tests/test_shuffle.py index 18afcb90..1194e598 100644 --- a/numcodecs/tests/test_shuffle.py +++ b/numcodecs/tests/test_shuffle.py @@ -162,7 +162,7 @@ def test_expected_result(): def test_incompatible_elementsize(): + arr = np.arange(1001, dtype='u1') + codec = Shuffle(elementsize=4) with pytest.raises(ValueError): - arr = np.arange(1001, dtype='u1') - codec = Shuffle(elementsize=4) codec.encode(arr) diff --git a/pyproject.toml b/pyproject.toml index 15bd8f4d..b85cb19f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -162,7 +162,6 @@ ignore = [ "PT004", # deprecated "PT005", # deprecated "PT011", - "PT012", "RUF001", "UP007", "UP027", # deprecated