Skip to content

Commit 76bd5cc

Browse files
committed
Address peer review comments
Signed-off-by: Michel Hidalgo <[email protected]>
1 parent fc87e45 commit 76bd5cc

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

rosidl_cli/rosidl_cli/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def main():
9595

9696
# call the main method of the command
9797
try:
98-
rc = args._command.main(parser=parser, args=args)
98+
rc = args._command.main(args=args)
9999
except KeyboardInterrupt:
100100
rc = signal.SIGINT
101101
except (ValueError, RuntimeError) as e:

rosidl_cli/rosidl_cli/command/generate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def add_arguments(self, parser):
5151
"If prefixed by another path followed by a colon ':', "
5252
'path resolution is performed against such path.'))
5353

54-
def main(self, *, parser, args):
54+
def main(self, *, args):
5555
extensions = []
5656

5757
unspecific_generation = \

rosidl_cli/rosidl_cli/command/generate/helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
import tempfile
2020

2121

22-
def package_name_from_include_path(path):
22+
def package_name_from_interface_file_path(path):
2323
"""
24-
Derive ROS package name from a ROS interface dependency include path.
24+
Derive ROS package name from a ROS interface definition file path.
2525
2626
This function assumes ROS interface definition files follow the typical
2727
``rosidl`` install space layout i.e. 'package_name/subfolder/interface.idl'.
@@ -37,7 +37,7 @@ def dependencies_from_include_paths(include_paths):
3737
prefixed by the name of package they belong to followed by a colon ':'.
3838
"""
3939
return list({
40-
f'{package_name_from_include_path(path)}:{path}'
40+
f'{package_name_from_interface_file_path(path)}:{path}'
4141
for include_path in map(pathlib.Path, include_paths)
4242
for path in include_path.resolve().glob('**/*.idl')
4343
})

rosidl_cli/rosidl_cli/extensions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def load_extensions(group_name, *, strict=False, **kwargs):
5050
try:
5151
extensions.append(factory(name))
5252
except Exception as e:
53-
msg = f"Failed to build extension '{name}': {e}"
53+
msg = f"Failed to instantiate extension '{name}': {e}"
5454
if strict:
5555
raise RuntimeError(msg)
5656
logger.warning(msg)

0 commit comments

Comments
 (0)