build/ros_bt_py_web_gui/Testing/20231218-1357/Test.xml: 4 tests, 0 errors, 1 failure, 0 skipped
- flake8
<<< failure message
-- run_test.py: invoking following command in '/root/target_ws/src/ros_bt_py/ros_bt_py_web_gui':
- /opt/ros/rolling/bin/ament_flake8 --xunit-file /root/target_ws/build/ros_bt_py_web_gui/test_results/ros_bt_py_web_gui/flake8.xunit.xml
./launch/ros_bt_py_web_gui.launch.py:38:1: I100 Import statements are in the wrong order. 'from launch_ros.actions import Node' should be before 'from launch_ros.substitutions import FindPackageShare'
from launch_ros.actions import Node
^
./launch/ros_bt_py_web_gui.launch.py:42:49: Q000 Double quotes found but single quotes preferred
web_server_port_value = LaunchConfiguration("web_server_port")
^
./launch/ros_bt_py_web_gui.launch.py:44:9: Q000 Double quotes found but single quotes preferred
"web_server_port",
^
./launch/ros_bt_py_web_gui.launch.py:45:23: Q000 Double quotes found but single quotes preferred
default_value="8085",
^
./launch/ros_bt_py_web_gui.launch.py:46:21: Q000 Double quotes found but single quotes preferred
description="Port to use for the web server, serving the ros_bt_py web gui.",
^
./launch/ros_bt_py_web_gui.launch.py:49:52: Q000 Double quotes found but single quotes preferred
web_server_address_value = LaunchConfiguration("web_server_address")
^
./launch/ros_bt_py_web_gui.launch.py:51:9: Q000 Double quotes found but single quotes preferred
"web_server_address",
^
./launch/ros_bt_py_web_gui.launch.py:52:23: Q000 Double quotes found but single quotes preferred
default_value="0.0.0.0",
^
./launch/ros_bt_py_web_gui.launch.py:53:21: Q000 Double quotes found but single quotes preferred
description="Network address to use for the web server, serving the ros_bt_py web gui.",
^
./launch/ros_bt_py_web_gui.launch.py:55:59: Q000 Double quotes found but single quotes preferred
web_folder = os.path.join(get_package_share_directory("ros_bt_py_web_gui"), "html")
^
./launch/ros_bt_py_web_gui.launch.py:55:81: Q000 Double quotes found but single quotes preferred
web_folder = os.path.join(get_package_share_directory("ros_bt_py_web_gui"), "html")
^
./launch/ros_bt_py_web_gui.launch.py:60:17: Q000 Double quotes found but single quotes preferred
"python3 ",
^
./launch/ros_bt_py_web_gui.launch.py:61:17: Q000 Double quotes found but single quotes preferred
"-m http.server ",
^
./launch/ros_bt_py_web_gui.launch.py:62:17: Q000 Double quotes found but single quotes preferred
"-b ",
^
./launch/ros_bt_py_web_gui.launch.py:64:17: Q000 Double quotes found but single quotes preferred
" -d ",
^
./launch/ros_bt_py_web_gui.launch.py:66:17: Q000 Double quotes found but single quotes preferred
" ",
^
./launch/ros_bt_py_web_gui.launch.py:76:34: Q000 Double quotes found but single quotes preferred
FindPackageShare("rosbridge_server"),
^
./launch/ros_bt_py_web_gui.launch.py:77:17: Q000 Double quotes found but single quotes preferred
"/launch",
^
./launch/ros_bt_py_web_gui.launch.py:78:17: Q000 Double quotes found but single quotes preferred
"/rosbridge_websocket_launch.xml",
^
./launch/ros_bt_py_web_gui.launch.py:84:17: Q000 Double quotes found but single quotes preferred
package="ros_bt_py_web_gui",
^
./launch/ros_bt_py_web_gui.launch.py:85:19: Q000 Double quotes found but single quotes preferred
namespace="ros_bt_py_web_gui",
^
./launch/ros_bt_py_web_gui.launch.py:86:20: Q000 Double quotes found but single quotes preferred
executable="show_editor_url.py",
^
./launch/ros_bt_py_web_gui.launch.py:87:14: Q000 Double quotes found but single quotes preferred
name="show_editor_url",
^
./launch/ros_bt_py_web_gui.launch.py:89:14: Q000 Double quotes found but single quotes preferred
{"hostname": web_server_address_value},
^
./launch/ros_bt_py_web_gui.launch.py:90:14: Q000 Double quotes found but single quotes preferred
{"port": web_server_port_value},
^
./scripts/show_editor_url.py:31:1: I201 Missing newline between import groups. 'import rclpy' is identified as Third Party and 'from typing import List' is identified as Stdlib.
import rclpy
^
./scripts/show_editor_url.py:34:1: I101 Imported names are in the wrong order. Should be AF_INET, ifaddresses, interfaces
from netifaces import interfaces, ifaddresses, AF_INET
^
./scripts/show_editor_url.py:34:1: I100 Import statements are in the wrong order. 'from netifaces import interfaces, ifaddresses, AF_INET' should be before 'from rclpy.node import Node'
from netifaces import interfaces, ifaddresses, AF_INET
^
./scripts/show_editor_url.py:42:37: Q000 Double quotes found but single quotes preferred
ip_list.append(link["addr"])
^
./scripts/show_editor_url.py:49:41: Q000 Double quotes found but single quotes preferred
hostname_param = node.get_parameter("hostname")
^
./scripts/show_editor_url.py:50:37: Q000 Double quotes found but single quotes preferred
port_param = node.get_parameter("port")
^
./scripts/show_editor_url.py:55:20: Q000 Double quotes found but single quotes preferred
if hostname == "0.0.0.0":
^
./scripts/show_editor_url.py:60:14: Q000 Double quotes found but single quotes preferred
suffix = f":{port}/index.html"
^
./scripts/show_editor_url.py:64:27: Q000 Double quotes found but single quotes preferred
hostname_prefix = f"# http://{hostname}"
^
./scripts/show_editor_url.py:65:55: Q000 Double quotes found but single quotes preferred
hostname_len = len(hostname_prefix + suffix + " #")
^
./scripts/show_editor_url.py:71:19: Q000 Double quotes found but single quotes preferred
padding_str = "{:#>{w}}".format("", w=max_hostname_len)
^
./scripts/show_editor_url.py:71:37: Q000 Double quotes found but single quotes preferred
padding_str = "{:#>{w}}".format("", w=max_hostname_len)
^
./scripts/show_editor_url.py:74:32: Q000 Double quotes found but single quotes preferred
hostname_padding_str = "{: >{w}}".format(
^
./scripts/show_editor_url.py:75:13: Q000 Double quotes found but single quotes preferred
"", w=max_hostname_len - len(hostname_prefix) - len(suffix) - 2
^
./scripts/show_editor_url.py:77:59: Q000 Double quotes found but single quotes preferred
node.get_logger().info(hostname_prefix + suffix + f"{hostname_padding_str} #")
^
./scripts/show_editor_url.py:84:17: Q000 Double quotes found but single quotes preferred
node = Node("url_printer")
^
./scripts/show_editor_url.py:86:19: Q000 Double quotes found but single quotes preferred
namespace="",
^
./scripts/show_editor_url.py:88:14: Q000 Double quotes found but single quotes preferred
("hostname", rclpy.Parameter.Type.STRING),
^
./scripts/show_editor_url.py:89:14: Q000 Double quotes found but single quotes preferred
("port", rclpy.Parameter.Type.INTEGER),
^
./scripts/show_editor_url.py:96:16: Q000 Double quotes found but single quotes preferred
if __name__ == "__main__":
^
2 I100 Import statements are in the wrong order. 'from launch_ros.actions import Node' should be before 'from launch_ros.substitutions import FindPackageShare'
1 I101 Imported names are in the wrong order. Should be AF_INET, ifaddresses, interfaces
1 I201 Missing newline between import groups. 'import rclpy' is identified as Third Party and 'from typing import List' is identified as Stdlib.
41 Q000 Double quotes found but single quotes preferred
2 files checked
45 errors
'I'-type errors: 4
'Q'-type errors: 41
Checked files:
* ./launch/ros_bt_py_web_gui.launch.py
* ./scripts/show_editor_url.py
-- run_test.py: return code 1
-- run_test.py: verify result file '/root/target_ws/build/ros_bt_py_web_gui/test_results/ros_bt_py_web_gui/flake8.xunit.xml'
>>>
build/ros_bt_py_web_gui/test_results/ros_bt_py_web_gui/flake8.xunit.xml: 45 tests, 0 errors, 45 failures, 0 skipped
- ros_bt_py_web_gui.flake8 I100 (./launch/ros_bt_py_web_gui.launch.py:38:1)
<<< failure message
Import statements are in the wrong order. 'from launch_ros.actions import Node' should be before 'from launch_ros.substitutions import FindPackageShare':
from launch_ros.actions import Node
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:42:49)
<<< failure message
Double quotes found but single quotes preferred:
web_server_port_value = LaunchConfiguration("web_server_port")
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:44:9)
<<< failure message
Double quotes found but single quotes preferred:
"web_server_port",
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:45:23)
<<< failure message
Double quotes found but single quotes preferred:
default_value="8085",
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:46:21)
<<< failure message
Double quotes found but single quotes preferred:
description="Port to use for the web server, serving the ros_bt_py web gui.",
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:49:52)
<<< failure message
Double quotes found but single quotes preferred:
web_server_address_value = LaunchConfiguration("web_server_address")
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:51:9)
<<< failure message
Double quotes found but single quotes preferred:
"web_server_address",
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:52:23)
<<< failure message
Double quotes found but single quotes preferred:
default_value="0.0.0.0",
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:53:21)
<<< failure message
Double quotes found but single quotes preferred:
description="Network address to use for the web server, serving the ros_bt_py web gui.",
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:55:59)
<<< failure message
Double quotes found but single quotes preferred:
web_folder = os.path.join(get_package_share_directory("ros_bt_py_web_gui"), "html")
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:55:81)
<<< failure message
Double quotes found but single quotes preferred:
web_folder = os.path.join(get_package_share_directory("ros_bt_py_web_gui"), "html")
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:60:17)
<<< failure message
Double quotes found but single quotes preferred:
"python3 ",
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:61:17)
<<< failure message
Double quotes found but single quotes preferred:
"-m http.server ",
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:62:17)
<<< failure message
Double quotes found but single quotes preferred:
"-b ",
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:64:17)
<<< failure message
Double quotes found but single quotes preferred:
" -d ",
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:66:17)
<<< failure message
Double quotes found but single quotes preferred:
" ",
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:76:34)
<<< failure message
Double quotes found but single quotes preferred:
FindPackageShare("rosbridge_server"),
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:77:17)
<<< failure message
Double quotes found but single quotes preferred:
"/launch",
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:78:17)
<<< failure message
Double quotes found but single quotes preferred:
"/rosbridge_websocket_launch.xml",
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:84:17)
<<< failure message
Double quotes found but single quotes preferred:
package="ros_bt_py_web_gui",
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:85:19)
<<< failure message
Double quotes found but single quotes preferred:
namespace="ros_bt_py_web_gui",
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:86:20)
<<< failure message
Double quotes found but single quotes preferred:
executable="show_editor_url.py",
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:87:14)
<<< failure message
Double quotes found but single quotes preferred:
name="show_editor_url",
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:89:14)
<<< failure message
Double quotes found but single quotes preferred:
{"hostname": web_server_address_value},
>>>
- ros_bt_py_web_gui.flake8 Q000 (./launch/ros_bt_py_web_gui.launch.py:90:14)
<<< failure message
Double quotes found but single quotes preferred:
{"port": web_server_port_value},
>>>
- ros_bt_py_web_gui.flake8 I201 (./scripts/show_editor_url.py:31:1)
<<< failure message
Missing newline between import groups. 'import rclpy' is identified as Third Party and 'from typing import List' is identified as Stdlib.:
import rclpy
>>>
- ros_bt_py_web_gui.flake8 I101 (./scripts/show_editor_url.py:34:1)
<<< failure message
Imported names are in the wrong order. Should be AF_INET, ifaddresses, interfaces:
from netifaces import interfaces, ifaddresses, AF_INET
>>>
- ros_bt_py_web_gui.flake8 I100 (./scripts/show_editor_url.py:34:1)
<<< failure message
Import statements are in the wrong order. 'from netifaces import interfaces, ifaddresses, AF_INET' should be before 'from rclpy.node import Node':
from netifaces import interfaces, ifaddresses, AF_INET
>>>
- ros_bt_py_web_gui.flake8 Q000 (./scripts/show_editor_url.py:42:37)
<<< failure message
Double quotes found but single quotes preferred:
ip_list.append(link["addr"])
>>>
- ros_bt_py_web_gui.flake8 Q000 (./scripts/show_editor_url.py:49:41)
<<< failure message
Double quotes found but single quotes preferred:
hostname_param = node.get_parameter("hostname")
>>>
- ros_bt_py_web_gui.flake8 Q000 (./scripts/show_editor_url.py:50:37)
<<< failure message
Double quotes found but single quotes preferred:
port_param = node.get_parameter("port")
>>>
- ros_bt_py_web_gui.flake8 Q000 (./scripts/show_editor_url.py:55:20)
<<< failure message
Double quotes found but single quotes preferred:
if hostname == "0.0.0.0":
>>>
- ros_bt_py_web_gui.flake8 Q000 (./scripts/show_editor_url.py:60:14)
<<< failure message
Double quotes found but single quotes preferred:
suffix = f":{port}/index.html"
>>>
- ros_bt_py_web_gui.flake8 Q000 (./scripts/show_editor_url.py:64:27)
<<< failure message
Double quotes found but single quotes preferred:
hostname_prefix = f"# http://{hostname}"
>>>
- ros_bt_py_web_gui.flake8 Q000 (./scripts/show_editor_url.py:65:55)
<<< failure message
Double quotes found but single quotes preferred:
hostname_len = len(hostname_prefix + suffix + " #")
>>>
- ros_bt_py_web_gui.flake8 Q000 (./scripts/show_editor_url.py:71:19)
<<< failure message
Double quotes found but single quotes preferred:
padding_str = "{:#>{w}}".format("", w=max_hostname_len)
>>>
- ros_bt_py_web_gui.flake8 Q000 (./scripts/show_editor_url.py:71:37)
<<< failure message
Double quotes found but single quotes preferred:
padding_str = "{:#>{w}}".format("", w=max_hostname_len)
>>>
- ros_bt_py_web_gui.flake8 Q000 (./scripts/show_editor_url.py:74:32)
<<< failure message
Double quotes found but single quotes preferred:
hostname_padding_str = "{: >{w}}".format(
>>>
- ros_bt_py_web_gui.flake8 Q000 (./scripts/show_editor_url.py:75:13)
<<< failure message
Double quotes found but single quotes preferred:
"", w=max_hostname_len - len(hostname_prefix) - len(suffix) - 2
>>>
- ros_bt_py_web_gui.flake8 Q000 (./scripts/show_editor_url.py:77:59)
<<< failure message
Double quotes found but single quotes preferred:
node.get_logger().info(hostname_prefix + suffix + f"{hostname_padding_str} #")
>>>
- ros_bt_py_web_gui.flake8 Q000 (./scripts/show_editor_url.py:84:17)
<<< failure message
Double quotes found but single quotes preferred:
node = Node("url_printer")
>>>
- ros_bt_py_web_gui.flake8 Q000 (./scripts/show_editor_url.py:86:19)
<<< failure message
Double quotes found but single quotes preferred:
namespace="",
>>>
- ros_bt_py_web_gui.flake8 Q000 (./scripts/show_editor_url.py:88:14)
<<< failure message
Double quotes found but single quotes preferred:
("hostname", rclpy.Parameter.Type.STRING),
>>>
- ros_bt_py_web_gui.flake8 Q000 (./scripts/show_editor_url.py:89:14)
<<< failure message
Double quotes found but single quotes preferred:
("port", rclpy.Parameter.Type.INTEGER),
>>>
- ros_bt_py_web_gui.flake8 Q000 (./scripts/show_editor_url.py:96:16)
<<< failure message
Double quotes found but single quotes preferred:
if __name__ == "__main__":
>>>
Summary: 158 tests, 0 errors, 46 failures, 0 skipped