Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cosmetic code fix #961

Merged
merged 3 commits into from
Sep 9, 2024
Merged
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
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
Loading