Skip to content

Commit

Permalink
formatted ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewI26 committed Nov 11, 2024
1 parent 250c4de commit e6fffaa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/cangen/cangen/can_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e6fffaa

Please sign in to comment.