Skip to content

Commit d3e97e8

Browse files
committed
fix lint
1 parent d02db95 commit d3e97e8

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

runtimes/huggingface/tests/test_common.py

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
@pytest.mark.parametrize(
9-
'output, expected',
9+
"output, expected",
1010
[
1111
(
1212
{
@@ -19,23 +19,20 @@
1919
"i8": np.int8(1.0),
2020
"i16": np.int16(1.0),
2121
"i32": np.int32(1.0),
22-
"i64": np.int64(1.0)
22+
"i64": np.int64(1.0),
2323
},
2424
'{"f_": 1.0, "f16": 1.0, "f32": 1.0, "f64": 1.0, "i_": '
25-
+ '1, "i0": 1, "i8": 1, "i16": 1, "i32": 1, "i64": 1}'
25+
+ '1, "i0": 1, "i8": 1, "i16": 1, "i32": 1, "i64": 1}',
2626
),
2727
(
2828
{
29-
'ints': np.full(1, 1, dtype=np.int8),
30-
'floats': np.full(1, 1, dtype=np.float32)
29+
"ints": np.full(1, 1, dtype=np.int8),
30+
"floats": np.full(1, 1, dtype=np.float32),
3131
},
32-
'{"ints": [1], "floats": [1.0]}'
32+
'{"ints": [1], "floats": [1.0]}',
3333
),
34-
(
35-
np.full((2, 2, 2), 1, dtype=np.int8),
36-
'[[[1, 1], [1, 1]], [[1, 1], [1, 1]]]'
37-
)
38-
]
34+
(np.full((2, 2, 2), 1, dtype=np.int8), "[[[1, 1], [1, 1]], [[1, 1], [1, 1]]]"),
35+
],
3936
)
4037
def test_numpy_encoder(output, expected):
4138
assert json.dumps(output, cls=NumpyEncoder) == expected

0 commit comments

Comments
 (0)