Skip to content

Commit fab8624

Browse files
Auto-format: ruff format
1 parent 9aa4c77 commit fab8624

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

scripts/lib_updater.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,12 @@ def apply_patches(contents: str, patches: Patches) -> str:
301301
# If we have modifications and unittest is not imported, add it
302302
if modifications and not has_unittest_import(tree):
303303
import_line = find_import_insert_line(tree)
304-
modifications.append((import_line, "import unittest # XXX: RUSTPYTHON; importing to be able to skip tests"))
304+
modifications.append(
305+
(
306+
import_line,
307+
"import unittest # XXX: RUSTPYTHON; importing to be able to skip tests",
308+
)
309+
)
305310

306311
# Going in reverse to not distrupt the line offset
307312
for lineno, patch in sorted(modifications, reverse=True):

0 commit comments

Comments
 (0)