diff --git a/.github/workflows/deploy-docs.yaml b/.github/workflows/deploy-docs.yaml index ad99bac40e..902ab8f40d 100644 --- a/.github/workflows/deploy-docs.yaml +++ b/.github/workflows/deploy-docs.yaml @@ -8,7 +8,6 @@ on: push: branches: - main - - galactic paths: - mkdocs.yaml - "**/*.md" @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b8c7d8b34b..ab43429365 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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 @@ -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] @@ -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$ diff --git a/common/autoware_lanelet2_utils/scripts/lanelet_anonymizer.py b/common/autoware_lanelet2_utils/scripts/lanelet_anonymizer.py index e915a7883f..c4e034a9a9 100755 --- a/common/autoware_lanelet2_utils/scripts/lanelet_anonymizer.py +++ b/common/autoware_lanelet2_utils/scripts/lanelet_anonymizer.py @@ -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) diff --git a/common/autoware_lanelet2_utils/scripts/test_case_generator.py b/common/autoware_lanelet2_utils/scripts/test_case_generator.py index d5d529dac8..d55efec477 100755 --- a/common/autoware_lanelet2_utils/scripts/test_case_generator.py +++ b/common/autoware_lanelet2_utils/scripts/test_case_generator.py @@ -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), @@ -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 ` to view the test context # @@ -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