Skip to content

Commit

Permalink
CI: Update pre-commit versions (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
mosfet80 committed Sep 9, 2024
1 parent e5678f8 commit b411dd0
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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


Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit b411dd0

Please sign in to comment.