From e6fffaac98fb472e1e0bd4bc16879889fde655a1 Mon Sep 17 00:00:00 2001 From: AndrewI26 <105824138+AndrewI26@users.noreply.github.com> Date: Mon, 11 Nov 2024 15:52:58 -0500 Subject: [PATCH] formatted ruff --- scripts/cangen/cangen/can_generator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/cangen/cangen/can_generator.py b/scripts/cangen/cangen/can_generator.py index 2c060a423..ee594cffe 100644 --- a/scripts/cangen/cangen/can_generator.py +++ b/scripts/cangen/cangen/can_generator.py @@ -169,7 +169,9 @@ def _camel_to_snake(text): def _create_output_file_name(bus_name: str, template_file_name: str) -> str: - return os.path.join(bus_name.lower() + "_" + template_file_name.removesuffix(".jninja2")) + return os.path.join( + bus_name.lower() + "_" + template_file_name.removesuffix(".jninja2") + ) def _generate_code(bus: Bus): @@ -211,8 +213,6 @@ def _generate_code(bus: Bus): template = env.get_template(template_file_name) rendered_code = template.render(**context) - - output_file_name = _create_output_file_name(bus.bus_name, template_file_name) with open(_create_output_file_name, "w") as output_file: output_file.write(rendered_code)