Skip to content

Commit 89c5c10

Browse files
Apply ruff/flake8-implicit-str-concat rules (ISC)
ISC001 Implicitly concatenated string literals on one line ISC003 Explicitly concatenated string should be implicitly concatenated
1 parent 044258e commit 89c5c10

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed

numcodecs/categorize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Categorize(Codec):
4040
def __init__(self, labels, dtype, astype='u1'):
4141
self.dtype = np.dtype(dtype)
4242
if self.dtype.kind not in 'UO':
43-
raise TypeError("only unicode ('U') and object ('O') dtypes are " "supported")
43+
raise TypeError("only unicode ('U') and object ('O') dtypes are supported")
4444
self.labels = [ensure_text(label) for label in labels]
4545
self.astype = np.dtype(astype)
4646
if self.astype == np.dtype(object):

numcodecs/tests/test_jenkins.py

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -84,38 +84,38 @@ def test_jenkins_lookup3_codec():
8484

8585
chunk_index = (
8686
b"\x00\x08\x00\x00\x00\x00\x00\x00"
87-
+ b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
88-
+ b"\xf7\x17\x00\x00\x00\x00\x00\x00"
89-
+ b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
90-
+ b"\xee'\x00\x00\x00\x00\x00\x00"
91-
+ b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
92-
+ b"\xe57\x00\x00\x00\x00\x00\x00"
93-
+ b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
94-
+ b"\xdcG\x00\x00\x00\x00\x00\x00"
95-
+ b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
96-
+ b"\xd3W\x00\x00\x00\x00\x00\x00"
97-
+ b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
98-
+ b"\xcag\x00\x00\x00\x00\x00\x00"
99-
+ b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
100-
+ b"\xc1w\x00\x00\x00\x00\x00\x00"
101-
+ b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
102-
+ b"\xb8\x87\x00\x00\x00\x00\x00\x00"
103-
+ b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
104-
+ b"\xaf\x97\x00\x00\x00\x00\x00\x00"
105-
+ b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
106-
+ b"\xa6\xa7\x00\x00\x00\x00\x00\x00"
107-
+ b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
108-
+ b"\x9d\xb7\x00\x00\x00\x00\x00\x00"
109-
+ b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
110-
+ b"\x94\xc7\x00\x00\x00\x00\x00\x00"
111-
+ b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
112-
+ b"\x8b\xd7\x00\x00\x00\x00\x00\x00"
113-
+ b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
114-
+ b"\x82\xe7\x00\x00\x00\x00\x00\x00"
115-
+ b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
116-
+ b"y\xf7\x00\x00\x00\x00\x00\x00"
117-
+ b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
118-
+ b"n\x96\x07\x85"
87+
b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
88+
b"\xf7\x17\x00\x00\x00\x00\x00\x00"
89+
b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
90+
b"\xee'\x00\x00\x00\x00\x00\x00"
91+
b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
92+
b"\xe57\x00\x00\x00\x00\x00\x00"
93+
b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
94+
b"\xdcG\x00\x00\x00\x00\x00\x00"
95+
b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
96+
b"\xd3W\x00\x00\x00\x00\x00\x00"
97+
b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
98+
b"\xcag\x00\x00\x00\x00\x00\x00"
99+
b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
100+
b"\xc1w\x00\x00\x00\x00\x00\x00"
101+
b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
102+
b"\xb8\x87\x00\x00\x00\x00\x00\x00"
103+
b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
104+
b"\xaf\x97\x00\x00\x00\x00\x00\x00"
105+
b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
106+
b"\xa6\xa7\x00\x00\x00\x00\x00\x00"
107+
b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
108+
b"\x9d\xb7\x00\x00\x00\x00\x00\x00"
109+
b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
110+
b"\x94\xc7\x00\x00\x00\x00\x00\x00"
111+
b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
112+
b"\x8b\xd7\x00\x00\x00\x00\x00\x00"
113+
b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
114+
b"\x82\xe7\x00\x00\x00\x00\x00\x00"
115+
b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
116+
b"y\xf7\x00\x00\x00\x00\x00\x00"
117+
b"\xf7\x0f\x00\x00\x00\x00\x00\x00"
118+
b"n\x96\x07\x85"
119119
)
120120
hdf5_fadb_prefix = b'FADB\x00\x01\xcf\x01\x00\x00\x00\x00\x00\x00'
121121
j = JenkinsLookup3(prefix=hdf5_fadb_prefix)

0 commit comments

Comments
 (0)