From b9583b9168a707b03a01cb200b968a3f5e2e5f49 Mon Sep 17 00:00:00 2001 From: Sebastian Castro Date: Wed, 4 Dec 2024 03:10:56 +0000 Subject: [PATCH] Fix tox source locations, multiline doesn't work in newer versions --- tests/test_either_or.py | 12 +++++------- tox.ini | 5 +---- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/tests/test_either_or.py b/tests/test_either_or.py index 3b5bca3a..8db0107b 100644 --- a/tests/test_either_or.py +++ b/tests/test_either_or.py @@ -17,13 +17,11 @@ ############################################################################## -def create_root() -> ( - typing.Tuple[ - py_trees.behaviour.Behaviour, - py_trees.behaviour.Behaviour, - py_trees.behaviour.Behaviour, - ] -): +def create_root() -> typing.Tuple[ + py_trees.behaviour.Behaviour, + py_trees.behaviour.Behaviour, + py_trees.behaviour.Behaviour, +]: trigger_one = py_trees.decorators.FailureIsRunning( name="FisR", child=py_trees.behaviours.SuccessEveryN(name="Joystick 1", n=4) ) diff --git a/tox.ini b/tox.ini index 10d8a8a1..129719a4 100644 --- a/tox.ini +++ b/tox.ini @@ -3,10 +3,7 @@ ################################################################################ [constants] -source_locations = - py_trees - tests -# doc/examples +source_locations = py_trees tests doc/examples [tox] envlist = py310, py312, format, check, mypy310, mypy312