Skip to content

cpp and python linters #20

cpp and python linters

cpp and python linters #20

GitHub Actions / Autopep8 failed Feb 5, 2024 in 0s

6 errors

Autopep8 found 6 errors

Annotations

Check failure on line 24 in src/samples/python/producer/setup.py

See this annotation in the file changed.

@github-actions github-actions / Autopep8

src/samples/python/producer/setup.py#L10-L24

     packages=[package_name],
     data_files=[
         # Install marker file in the package index
-        ('share/ament_index/resource_index/packages', ['resource/' + package_name]),
+        ('share/ament_index/resource_index/packages',
+         ['resource/' + package_name]),
         # Include our package.xml file
         (os.path.join('share', package_name), ['package.xml']),
         # Include all launch files
         (os.path.join('share', package_name, 'launch'),
          glob(os.path.join('launch', '*.launch.py'))),
         # Include config files for parameters
-        (os.path.join('share', package_name, 'config'), glob(os.path.join('config', '*.yaml'))),
+        (os.path.join('share', package_name, 'config'),
+         glob(os.path.join('config', '*.yaml'))),
     ],
     install_requires=['setuptools'],
     zip_safe=True,

Check failure on line 50 in src/samples/python/producer/producer/producer_node.py

See this annotation in the file changed.

@github-actions github-actions / Autopep8

src/samples/python/producer/producer/producer_node.py#L36-L50

         pos_x = self.get_parameter('pos_x').get_parameter_value().double_value
         pos_y = self.get_parameter('pos_y').get_parameter_value().double_value
         pos_z = self.get_parameter('pos_z').get_parameter_value().double_value
-        velocity = self.get_parameter('velocity').get_parameter_value().double_value
+        velocity = self.get_parameter(
+            'velocity').get_parameter_value().double_value
 
         # Initialize producer core logic for serialization
         self.__producer = ProducerCore(pos_x, pos_y, pos_z, velocity)
 
         # Initialize ROS2 constructs
         queue_size = 10
-        self.publisher_ = self.create_publisher(Unfiltered, '/unfiltered_topic', queue_size)
+        self.publisher_ = self.create_publisher(
+            Unfiltered, '/unfiltered_topic', queue_size)
 
         timer_period = 0.5
         self.timer = self.create_timer(timer_period, self.__publish_position)

Check failure on line 17 in src/samples/python/aggregator/setup.py

See this annotation in the file changed.

@github-actions github-actions / Autopep8

src/samples/python/aggregator/setup.py#L10-L17

     packages=[package_name],
     data_files=[
         # Install marker file in the package index
-        ('share/ament_index/resource_index/packages', ['resource/' + package_name]),
+        ('share/ament_index/resource_index/packages',
+         ['resource/' + package_name]),
         # Include our package.xml file
         (os.path.join('share', package_name), ['package.xml']),
         # Include all launch files.

Check failure on line 61 in src/samples/python/aggregator/aggregator/aggregator_node.py

See this annotation in the file changed.

@github-actions github-actions / Autopep8

src/samples/python/aggregator/aggregator/aggregator_node.py#L54-L61

                                str(self.__aggregator.num_filtered_msgs))
 
         self.get_logger().info('Producer Frequency:' + str(self.__aggregator.raw_freq))
-        self.get_logger().info('Transformer Frequency:' + str(self.__aggregator.filtered_freq))
+        self.get_logger().info('Transformer Frequency:' +
+                               str(self.__aggregator.filtered_freq))
 
 
 def main(args=None):

Check failure on line 24 in src/samples/python/transformer/setup.py

See this annotation in the file changed.

@github-actions github-actions / Autopep8

src/samples/python/transformer/setup.py#L10-L24

     packages=[package_name],
     data_files=[
         # Install marker file in the package index
-        ('share/ament_index/resource_index/packages', ['resource/' + package_name]),
+        ('share/ament_index/resource_index/packages',
+         ['resource/' + package_name]),
         # Include our package.xml file
         (os.path.join('share', package_name), ['package.xml']),
         # Include all launch files.
         (os.path.join('share', package_name, 'launch'), glob(os.path.join('launch',
                                                                           '*.launch.py'))),
         # Include config files for parameters
-        (os.path.join('share', package_name, 'config'), glob(os.path.join('config', '*.yaml'))),
+        (os.path.join('share', package_name, 'config'),
+         glob(os.path.join('config', '*.yaml'))),
     ],
     install_requires=['setuptools'],
     zip_safe=True,

Check failure on line 42 in src/samples/python/transformer/transformer/transformer_node.py

See this annotation in the file changed.

@github-actions github-actions / Autopep8

src/samples/python/transformer/transformer/transformer_node.py#L35-L42

         self.__transformer = TransformerCore()
 
         # Initialize ROS2 Constructs
-        self.publisher_ = self.create_publisher(FilteredArray, '/filtered_topic', 10)
+        self.publisher_ = self.create_publisher(
+            FilteredArray, '/filtered_topic', 10)
         self.subscription = self.create_subscription(Unfiltered, '/unfiltered_topic',
                                                      self.unfiltered_callback, 10)