Skip to content

Commit eda13be

Browse files
style(pre-commit): autofix
1 parent 9687566 commit eda13be

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

common/autoware_lanelet2_utils/scripts/lanelet_anonymizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def update_osm_latlon(osm_file, output_file, origin_id):
6060
print(f"could not find point of id {origin_id}")
6161
return
6262

63-
(old_origin_x, old_origin_y) = old_origin_local_xy
63+
old_origin_x, old_origin_y = old_origin_local_xy
6464

6565
mgrs_code = mgrs.MGRS().toMGRS(GLOBAL_ORIGIN_LAT, GLOBAL_ORIGIN_LON)
6666

common/autoware_lanelet2_utils/scripts/test_case_generator.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def commit_drawing_arrow(self, ax, x, y):
218218
ax.text(x0, y0, f"P{len(self._added_arrow_points)}", color="red", fontsize=10)
219219
)
220220
yaw = np.arctan2(dy, dx)
221-
(qx, qy, qz, qw) = quaternion_from_euler(0.0, 0.0, yaw)
221+
qx, qy, qz, qw = quaternion_from_euler(0.0, 0.0, yaw)
222222
self._added_arrow_points.append(
223223
Pose(
224224
position=Point(x=x0, y=y0, z=100.0),
@@ -239,8 +239,7 @@ def dump_v1(self, map_rel_path, dump_path):
239239
data["map_rel_path"] = str(map_rel_path)
240240
data["manual_poses"] = [yaml.safe_load(message_to_yaml(pose)) for pose in self.manual_poses]
241241
with open(dump_path, "w") as f:
242-
f.write(
243-
"""# Auto-generated by running `scripts/test_case_generator.py --generate`
242+
f.write("""# Auto-generated by running `scripts/test_case_generator.py --generate`
244243
#
245244
# Run `scripts/test_case_generator.py --view <this file name>` to view the test context
246245
#
@@ -253,8 +252,7 @@ def dump_v1(self, map_rel_path, dump_path):
253252
#
254253
# format2(TBD)
255254
256-
"""
257-
)
255+
""")
258256
yaml.dump(data, f, encoding="utf-8", allow_unicode=True)
259257

260258
@staticmethod

0 commit comments

Comments
 (0)