Skip to content

Commit 9859818

Browse files
committed
chore: reformat code
1 parent fd57867 commit 9859818

3 files changed

Lines changed: 15 additions & 12 deletions

File tree

manager/manager/launcher/launcher_ros.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ class LauncherRos(ILauncher):
4444
def run(self):
4545
try:
4646
# generate entry_point environment variable
47-
os.environ[
48-
"EXERCISE_FOLDER"
49-
] = f"{os.environ.get('EXERCISES_STATIC_FOLDER')}/{self.exercise_id}"
47+
os.environ["EXERCISE_FOLDER"] = (
48+
f"{os.environ.get('EXERCISES_STATIC_FOLDER')}/{self.exercise_id}"
49+
)
5050

5151
# expand variables in configuration paths
5252
resource_folders = [
@@ -57,15 +57,15 @@ def run(self):
5757
launch_file = os.path.expandvars(self.launch_file)
5858

5959
env = dict(os.environ)
60-
env[
61-
"GAZEBO_RESOURCE_PATH"
62-
] = f"{env.get('GAZEBO_RESOURCE_PATH', '')}:{':'.join(resource_folders)}"
63-
env[
64-
"GAZEBO_MODEL_PATH"
65-
] = f"{env.get('GAZEBO_MODEL_PATH', '')}:{':'.join(model_folders)}"
66-
env[
67-
"GAZEBO_PLUGIN_PATH"
68-
] = f"{env.get('GAZEBO_PLUGIN_PATH', '')}:{':'.join(plugin_folders)}"
60+
env["GAZEBO_RESOURCE_PATH"] = (
61+
f"{env.get('GAZEBO_RESOURCE_PATH', '')}:{':'.join(resource_folders)}"
62+
)
63+
env["GAZEBO_MODEL_PATH"] = (
64+
f"{env.get('GAZEBO_MODEL_PATH', '')}:{':'.join(model_folders)}"
65+
)
66+
env["GAZEBO_PLUGIN_PATH"] = (
67+
f"{env.get('GAZEBO_PLUGIN_PATH', '')}:{':'.join(plugin_folders)}"
68+
)
6969

7070
parameters = " ".join(self.parameters)
7171
command = f"{self.ros_command_line} {parameters} {launch_file}"

manager/manager/manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ def on_style_check_application(self, event):
478478
Raises:
479479
Exception: with the errors found in the linter
480480
"""
481+
481482
def find_docker_console():
482483
"""Search console in docker different of /dev/pts/0 ."""
483484
pts_consoles = [
@@ -689,6 +690,7 @@ def on_run_application(self, event):
689690
Parameters:
690691
event: The event object containing application configuration and code data.
691692
"""
693+
692694
def find_docker_console():
693695
"""Search console in docker different of /dev/pts/0 ."""
694696
pts_consoles = [

test/test_idle_to_connected.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def send_message(self, *args, **kwargs):
2323
@pytest.fixture
2424
def manager(monkeypatch):
2525
"""Fixture to provide a Manager instance with patched dependencies for testing."""
26+
2627
# Patch subprocess.check_output for ROS_DISTRO and IMAGE_TAG
2728
def fake_check_output(cmd, *a, **k):
2829
if "ROS_DISTRO" in cmd[-1]:

0 commit comments

Comments
 (0)