Skip to content

Commit 762519e

Browse files
committed
Lint
1 parent 09c2bab commit 762519e

7 files changed

Lines changed: 11 additions & 4 deletions

File tree

tests/common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66

77
import numpy as np
88
import pytest
9+
from numpy.testing import assert_array_almost_equal, assert_array_equal
10+
911
from numcodecs import * # noqa: F403 # for eval to find names in repr tests
1012
from numcodecs.compat import ensure_bytes, ensure_ndarray
1113
from numcodecs.registry import get_codec
12-
from numpy.testing import assert_array_almost_equal, assert_array_equal
1314

1415
greetings = [
1516
'¡Hola mundo!',

tests/test_bitround.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import numpy as np
22
import pytest
3+
34
from numcodecs.bitround import BitRound, max_bits
45

56
# adapted from https://github.com/milankl/BitInformation.jl/blob/main/test/round_nearest.jl

tests/test_compat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import numpy as np
55
import pytest
6+
67
from numcodecs.compat import ensure_bytes, ensure_contiguous_ndarray, ensure_text
78

89

tests/test_entrypoints.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import os.path
22
import sys
33

4-
import numcodecs.registry
54
import pytest
65

6+
import numcodecs.registry
7+
78
here = os.path.abspath(os.path.dirname(__file__))
89

910

tests/test_entrypoints_backport.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
import sys
44
from multiprocessing import Process
55

6-
import numcodecs.registry
76
import pytest
87

8+
import numcodecs.registry
9+
910
importlib_spec = importlib.util.find_spec("importlib_metadata")
1011
if importlib_spec is None or importlib_spec.loader is None: # pragma: no cover
1112
pytest.skip(

tests/test_ndarray_like.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import pytest
2+
23
from numcodecs.ndarray_like import DType, FlagsObj, NDArrayLike
34

45

tests/test_registry.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import inspect
22

3-
import numcodecs
43
import pytest
4+
5+
import numcodecs
56
from numcodecs.errors import UnknownCodecError
67
from numcodecs.registry import get_codec
78

0 commit comments

Comments
 (0)