Skip to content

Commit

Permalink
ci(pre-commit): autoupdate (#2819)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Feb 7, 2023
1 parent fb9b453 commit 650a35b
Show file tree
Hide file tree
Showing 20 changed files with 2 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ repos:
- id: isort

- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black
args: [--line-length=100]
Expand Down
1 change: 0 additions & 1 deletion common/autoware_testing/autoware_testing/smoke_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def resolve_node(context, *args, **kwargs):

@pytest.mark.launch_test
def generate_test_description():

arg_package = DeclareLaunchArgument(
"arg_package", default_value=["default"], description="Package containing tested executable"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ def create_common_pipeline(self, input_topic, output_topic):
return components

def create_single_frame_obstacle_segmentation_components(self, input_topic, output_topic):

additional_lidars = self.ground_segmentation_param["additional_lidars"]
use_ransac = bool(self.ground_segmentation_param["ransac_input_topics"])
use_additional = bool(additional_lidars)
Expand Down Expand Up @@ -424,7 +423,6 @@ def create_single_frame_outlier_filter_components(input_topic, output_topic, con

@staticmethod
def get_additional_lidars_concatenated_component(input_topics, output_topic):

return ComposableNode(
package="pointcloud_preprocessor",
plugin="pointcloud_preprocessor::PointCloudConcatenateDataSynchronizerComponent",
Expand Down Expand Up @@ -507,7 +505,6 @@ def launch_setup(context, *args, **kwargs):


def generate_launch_description():

launch_arguments = []

def add_launch_arg(name: str, default_value=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@


def launch_setup(context, *args, **kwargs):

# vehicle information parameter
vehicle_param_path = LaunchConfiguration("vehicle_param_file").perform(context)
with open(vehicle_param_path, "r") as f:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@


def launch_setup(context, *args, **kwargs):

vehicle_info_param_path = LaunchConfiguration("vehicle_param_file").perform(context)
with open(vehicle_info_param_path, "r") as f:
vehicle_info_param = yaml.safe_load(f)["/**"]["ros__parameters"]
Expand Down
1 change: 0 additions & 1 deletion map/map_loader/test/lanelet2_map_loader_launch.test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

@pytest.mark.launch_test
def generate_test_description():

lanelet2_map_path = os.path.join(
get_package_share_directory("map_loader"), "test/data/test_map.osm"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

@pytest.mark.launch_test
def generate_test_description():

lidar_apollo_segmentation_tvm = Node(
package="lidar_apollo_segmentation_tvm_nodes",
executable="lidar_apollo_segmentation_tvm_nodes_exe",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@


def main(args=None):

rclpy.init(args=args)

node = Node("lidar_centerpoint_visualizer")
Expand Down Expand Up @@ -53,5 +52,4 @@ def main(args=None):


if __name__ == "__main__":

main()
1 change: 0 additions & 1 deletion planning/freespace_planning_algorithms/test/debug_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ def create_concate_png(src_list, dest, is_horizontal):
algo_name = algo_names[i]
algo_pngs = []
for j in range(n_case):

fig, ax = plt.subplots()

result_dir = dir_name_table[(algo_name, j)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def visualize(self):


if __name__ == "__main__":

with open("/tmp/rrt_result.txt", "r") as f:
dict_data = json.load(f)
tree = Tree.from_dict(dict_data)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ def CallbackCalculationCost(self, msg):


if __name__ == "__main__":

parser = argparse.ArgumentParser()
parser.add_argument("-f", "--functions", type=str, default="solveOsqp")
args = parser.parse_args()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

class TrajectoryVisualizer(Node):
def __init__(self):

super().__init__("trajectory_visualizer")

self.fig = plt.figure()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

class TrajectoryVisualizer(Node):
def __init__(self):

super().__init__("trajectory_visualizer")

self.fig = plt.figure()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@

class TrajectoryVisualizer(Node):
def __init__(self):

super().__init__("trajectory_visualizer")

self.fig = plt.figure()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

@pytest.mark.launch_test
def generate_test_description():

lanelet2_map_path = os.path.join(
get_package_share_directory("static_centerline_optimizer"), "test/data/lanelet2_map.osm"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def lowpass_filter_scipy(x, sample_rate, fp, fs, g_pass, g_stop):
def create_2d_map(
x, y, data, color_factor, x_index_list, x_thresh, y_index_list, y_thresh, calibration_method
):

if x.shape != y.shape or y.shape != data.shape:
print("Error: the shape of x, y, data must be same")
sys.exit()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ def view_pedal_accel_graph(
calibrated_pedal_list,
calibrated_acc_list,
):

fig = plotter.subplot_more(subplot_num)

# calibrated map
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def imshow(self, data, left, right, ws, bottom, top, hs, num_data_type="float"):
origin="lower",
)
ys, xs = np.meshgrid(width_range, height_range, indexing="ij")
for (x, y, val) in zip(xs.flatten(), ys.flatten(), data.flatten()):
for x, y, val in zip(xs.flatten(), ys.flatten(), data.flatten()):
self.plot_text(x, y, val, num_data_type)
plt.colorbar()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ def view_pedal_accel_graph(
calibrated_acc_list,
scatter_only,
):

fig = plotter.subplot_more(subplot_num)

if not scatter_only:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def _create_mapping_tuple(name):


def generate_launch_description():

arguments = [
# component
DeclareLaunchArgument("use_intra_process"),
Expand Down

0 comments on commit 650a35b

Please sign in to comment.