From b411dd0dc317ef48408608e51a8683e42044d463 Mon Sep 17 00:00:00 2001 From: mosfet80 Date: Mon, 9 Sep 2024 11:20:20 +0200 Subject: [PATCH] CI: Update pre-commit versions (#961) --- .pre-commit-config.yaml | 4 ++-- .../launch/jupyter_notebook_prototyping.launch.py | 4 +++- .../launch/motion_planning_pipeline_tutorial.launch.py | 6 ++++-- .../launch/motion_planning_python_api_tutorial.launch.py | 1 + .../benchmarking/launch/run_benchmarks.launch.py | 3 ++- .../launch/parallel_planning_example.launch.py | 3 ++- 6 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0785bcbac8..1b2f47c553 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: # Standard hooks - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 + rev: v4.6.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -28,7 +28,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 24.8.0 hooks: - id: black diff --git a/doc/examples/jupyter_notebook_prototyping/launch/jupyter_notebook_prototyping.launch.py b/doc/examples/jupyter_notebook_prototyping/launch/jupyter_notebook_prototyping.launch.py index 9ab7c386c3..8539f11e42 100644 --- a/doc/examples/jupyter_notebook_prototyping/launch/jupyter_notebook_prototyping.launch.py +++ b/doc/examples/jupyter_notebook_prototyping/launch/jupyter_notebook_prototyping.launch.py @@ -1,6 +1,7 @@ """ A launch file that starts a Jupyter notebook server and nodes that support motion planning with the MoveIt Python library. """ + import os import yaml from launch import LaunchDescription @@ -18,7 +19,8 @@ def load_yaml(package_name, file_path): try: with open(absolute_file_path, "r") as file: return yaml.safe_load(file) - except EnvironmentError: # parent of IOError, OSError *and* WindowsError where available + # parent of IOError, OSError *and* WindowsError where available + except EnvironmentError: return None diff --git a/doc/examples/motion_planning_pipeline/launch/motion_planning_pipeline_tutorial.launch.py b/doc/examples/motion_planning_pipeline/launch/motion_planning_pipeline_tutorial.launch.py index fb0555c384..1ae172ebf1 100644 --- a/doc/examples/motion_planning_pipeline/launch/motion_planning_pipeline_tutorial.launch.py +++ b/doc/examples/motion_planning_pipeline/launch/motion_planning_pipeline_tutorial.launch.py @@ -13,7 +13,8 @@ def load_file(package_name, file_path): try: with open(absolute_file_path, "r") as file: return file.read() - except EnvironmentError: # parent of IOError, OSError *and* WindowsError where available + # parent of IOError, OSError *and* WindowsError where available + except EnvironmentError: return None @@ -24,7 +25,8 @@ def load_yaml(package_name, file_path): try: with open(absolute_file_path, "r") as file: return yaml.safe_load(file) - except EnvironmentError: # parent of IOError, OSError *and* WindowsError where available + # parent of IOError, OSError *and* WindowsError where available + except EnvironmentError: return None diff --git a/doc/examples/motion_planning_python_api/launch/motion_planning_python_api_tutorial.launch.py b/doc/examples/motion_planning_python_api/launch/motion_planning_python_api_tutorial.launch.py index 531c8c091b..c7b1be0dd7 100644 --- a/doc/examples/motion_planning_python_api/launch/motion_planning_python_api_tutorial.launch.py +++ b/doc/examples/motion_planning_python_api/launch/motion_planning_python_api_tutorial.launch.py @@ -1,6 +1,7 @@ """ A launch file for running the motion planning python api tutorial """ + import os from ament_index_python.packages import get_package_share_directory from launch import LaunchDescription diff --git a/doc/how_to_guides/benchmarking/launch/run_benchmarks.launch.py b/doc/how_to_guides/benchmarking/launch/run_benchmarks.launch.py index 739b51d1d9..79a6b11d43 100644 --- a/doc/how_to_guides/benchmarking/launch/run_benchmarks.launch.py +++ b/doc/how_to_guides/benchmarking/launch/run_benchmarks.launch.py @@ -14,7 +14,8 @@ def load_yaml(package_name, file_path): try: with open(absolute_file_path, "r") as file: return yaml.safe_load(file) - except EnvironmentError: # parent of IOError, OSError *and* WindowsError where available + # parent of IOError, OSError *and* WindowsError where available + except EnvironmentError: return None diff --git a/doc/how_to_guides/parallel_planning/launch/parallel_planning_example.launch.py b/doc/how_to_guides/parallel_planning/launch/parallel_planning_example.launch.py index 81ca3d77ff..9b4178e079 100644 --- a/doc/how_to_guides/parallel_planning/launch/parallel_planning_example.launch.py +++ b/doc/how_to_guides/parallel_planning/launch/parallel_planning_example.launch.py @@ -14,7 +14,8 @@ def load_yaml(package_name, file_path): try: with open(absolute_file_path, "r") as file: return yaml.safe_load(file) - except EnvironmentError: # parent of IOError, OSError *and* WindowsError where available + # parent of IOError, OSError *and* WindowsError where available + except EnvironmentError: return None