Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
push:
branches:
- main
- galactic
paths:
- mkdocs.yaml
- "**/*.md"
Expand All @@ -34,7 +33,7 @@ jobs:

deploy-docs:
needs: make-sure-label-is-present
if: ${{ needs.make-sure-label-is-present.outputs.result == 'true' }}
if: ${{ github.event_name != 'pull_request_target' || needs.make-sure-label-is-present.outputs.result == 'true' }}
runs-on: ubuntu-22.04
steps:
- name: Check out repository
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ repos:
args: [--no-error-on-unmatched-pattern]

- repo: https://github.com/adrienverge/yamllint
rev: v1.37.1
rev: v1.38.0
hooks:
- id: yamllint

Expand All @@ -47,7 +47,7 @@ repos:
- id: check-package-depends

- repo: https://github.com/tier4/pre-commit-hooks-ros
rev: v0.10.0
rev: v0.10.2
hooks:
- id: flake8-ros
- id: prettier-xacro
Expand All @@ -74,7 +74,7 @@ repos:
args: [--profile=black, --line-length=100]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.12.0
rev: 26.1.0
hooks:
- id: black
args: [--line-length=100]
Expand All @@ -93,7 +93,7 @@ repos:
exclude: .cu

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.36.0
rev: 0.36.2
hooks:
- id: check-metaschema
files: ^.+/schema/.*schema\.json$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def update_osm_latlon(osm_file, output_file, origin_id):
print(f"could not find point of id {origin_id}")
return

(old_origin_x, old_origin_y) = old_origin_local_xy
old_origin_x, old_origin_y = old_origin_local_xy

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def commit_drawing_arrow(self, ax, x, y):
ax.text(x0, y0, f"P{len(self._added_arrow_points)}", color="red", fontsize=10)
)
yaw = np.arctan2(dy, dx)
(qx, qy, qz, qw) = quaternion_from_euler(0.0, 0.0, yaw)
qx, qy, qz, qw = quaternion_from_euler(0.0, 0.0, yaw)
self._added_arrow_points.append(
Pose(
position=Point(x=x0, y=y0, z=100.0),
Expand All @@ -239,8 +239,7 @@ def dump_v1(self, map_rel_path, dump_path):
data["map_rel_path"] = str(map_rel_path)
data["manual_poses"] = [yaml.safe_load(message_to_yaml(pose)) for pose in self.manual_poses]
with open(dump_path, "w") as f:
f.write(
"""# Auto-generated by running `scripts/test_case_generator.py --generate`
f.write("""# Auto-generated by running `scripts/test_case_generator.py --generate`
#
# Run `scripts/test_case_generator.py --view <this file name>` to view the test context
#
Expand All @@ -253,8 +252,7 @@ def dump_v1(self, map_rel_path, dump_path):
#
# format2(TBD)

"""
)
""")
yaml.dump(data, f, encoding="utf-8", allow_unicode=True)

@staticmethod
Expand Down
Loading