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