Skip to content

Commit ad70020

Browse files
authored
[CodeStyle] black -> ruff format migration - part 14 (#74667)
1 parent 801421a commit ad70020

11 files changed

+6
-5
lines changed

test/xpu/test_moe_combine_xpu.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,5 +236,4 @@ def test_k_gt_2(
236236

237237

238238
if __name__ == "__main__":
239-
240239
unittest.main()

test/xpu/test_moe_gate_dispatch_xpu.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,5 +223,4 @@ def test_moe_ops(self):
223223

224224

225225
if __name__ == "__main__":
226-
227226
unittest.main()

test/xpu/test_put_along_axis_op_int_xpu.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def __init__(self):
3535

3636
class TestXPUPutAlongAxisOpAssign(XPUOpTest):
3737
def setUp(self):
38-
3938
self.init_config()
4039
self.init_data()
4140
self.x = np.random.random(self.x_shape).astype(

test/xpu/test_put_along_axis_op_xpu.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def __init__(self):
3535

3636
class TestXPUPutAlongAxisOpAssign(XPUOpTest):
3737
def setUp(self):
38-
3938
self.init_config()
4039
self.init_data()
4140
self.x = np.random.random(self.x_shape).astype(

tools/check_op_kernel_same_dtypes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
python check_op_kernel_same_dtypes.py > all_kernels.txt
1919
python check_op_kernel_same_dtypes.py OP_KERNEL_DTYPE_DEV.spec OP_KERNEL_DTYPE_PR.spec > is_valid
2020
"""
21+
2122
import collections
2223
import re
2324
import sys

tools/check_op_register_type.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
python check_op_register_type.py > all_kernels.txt
1919
python check_op_register_type.py OP_TYPE_DEV.spec OP_TYPE_PR.spec > is_valid
2020
"""
21+
2122
import collections
2223
import difflib
2324
import re

tools/coverage/coverage_lines.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"""
1717
usage: coverage_lines.py info_file expected
1818
"""
19+
1920
import os
2021
import sys
2122

tools/gen_pybind11_stub.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ def check_remove_syntax_error(filename: str, limit: int = 10000):
338338
)
339339

340340
while limit > 0:
341-
342341
limit -= 1
343342

344343
# check syntax error

tools/test_check_api_compatible.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"""
1717
TestCases for check_api_compatible.py
1818
"""
19+
1920
import tempfile
2021
import unittest
2122

tools/test_check_pr_approval.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"""
1717
TestCases for check_pr_approval.py
1818
"""
19+
1920
import subprocess
2021
import sys
2122
import unittest

0 commit comments

Comments
 (0)