From 9f92ecdf27449c8404bce0d5756fa65ab1a4912c Mon Sep 17 00:00:00 2001 From: Guilhem Saurel <guilhem.saurel@laas.fr> Date: Wed, 28 Aug 2019 17:33:01 +0200 Subject: [PATCH] [Format] fix linters --- example_robot_data/robots_loader.py | 1 + setup.cfg | 2 +- unittest/test_load.py | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/example_robot_data/robots_loader.py b/example_robot_data/robots_loader.py index 0665e5b..6bbad03 100644 --- a/example_robot_data/robots_loader.py +++ b/example_robot_data/robots_loader.py @@ -70,6 +70,7 @@ def loadTalos(): addFreeFlyerJointLimits(robot) return robot + def loadTalosLegs(): robot = loadTalos() URDF_FILENAME = "talos_reduced.urdf" diff --git a/setup.cfg b/setup.cfg index 30c97e4..40158e3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [flake8] max-line-length = 119 -exclude = python/__init__.py +exclude = example_robot_data/__init__.py [yapf] column_limit = 119 diff --git a/unittest/test_load.py b/unittest/test_load.py index f5a1260..f7e59df 100755 --- a/unittest/test_load.py +++ b/unittest/test_load.py @@ -38,11 +38,13 @@ class TalosTest(RobotTestCase): RobotTestCase.NQ = 39 RobotTestCase.NV = 38 + class TalosLegsTest(RobotTestCase): RobotTestCase.ROBOT = example_robot_data.loadTalosLegs() RobotTestCase.NQ = 19 RobotTestCase.NV = 18 + class HyQTest(RobotTestCase): RobotTestCase.ROBOT = example_robot_data.loadHyQ() RobotTestCase.NQ = 19 -- GitLab