From 6b74e7cfaa29a80b93e5c9417929e1f44d561f83 Mon Sep 17 00:00:00 2001 From: Amal Nanavati Date: Tue, 29 Aug 2023 14:27:31 -0700 Subject: [PATCH] Formatting/linting --- ada_feeding/ada_feeding/trees/move_to_mouth_tree.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ada_feeding/ada_feeding/trees/move_to_mouth_tree.py b/ada_feeding/ada_feeding/trees/move_to_mouth_tree.py index e6db9f5d..1cb2d3d2 100644 --- a/ada_feeding/ada_feeding/trees/move_to_mouth_tree.py +++ b/ada_feeding/ada_feeding/trees/move_to_mouth_tree.py @@ -133,9 +133,9 @@ def create_move_to_tree( ------- tree: The behaviour tree that moves the robot above the plate. """ - # pylint: disable=too-many-locals + # pylint: disable=too-many-locals, too-many-statements # This function creates all the behaviors of the tree, which is why - # it has so many locals. + # it has so many locals/statements. # TODO: consider separating each behavior into its own function to simplify this. # Separate the namespace of each sub-behavior @@ -427,7 +427,9 @@ def create_move_to_tree( move_to_mouth, # Even though we are cleaning up the tree, it should still # pass the failure up. - py_trees.decorators.SuccessIsFailure(name+" Cleanup", turn_face_detection_off), + py_trees.decorators.SuccessIsFailure( + name + " Cleanup", turn_face_detection_off + ), ], ) root.logger = logger