Skip to content

Commit c6b4406

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b1e5229 commit c6b4406

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ardupilot_methodic_configurator/data_model_configuration_step.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,9 @@ def _generate_connection_renames(parameters: list[str], new_connection_prefix: s
348348
old_prefix += "_" + parts[1]
349349
new_prefix = "CAN_D" + new_number
350350
is_exception_case = True
351-
if new_type == "SERIAL" and len(parts) >= 2 and parts[0] == "BRD" and re.match(r"^SER\d+$", parts[1]): # codespell:ignore
351+
if (
352+
new_type == "SERIAL" and len(parts) >= 2 and parts[0] == "BRD" and re.match(r"^SER\d+$", parts[1])
353+
): # codespell:ignore
352354
old_prefix += "_" + parts[1]
353355
new_prefix = "BRD_SER" + new_number
354356
is_exception_case = True

0 commit comments

Comments
 (0)