From 3ad15c99e33b5468c6cf59fb90e6a86424bcad6f Mon Sep 17 00:00:00 2001 From: Fabien Danieau Date: Sun, 12 Nov 2023 16:42:05 +0100 Subject: [PATCH] enhancement #24: set black to 128 line length like flake8 --- pyproject.toml | 5 ++++- src/example/xterrabot.py | 12 +++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 00862d7..3fa7277 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,4 +3,7 @@ requires = ["setuptools"] build-backend = "setuptools.build_meta" [tool.isort] -profile = "black" \ No newline at end of file +profile = "black" + +[tool.black] +line-length = 128 \ No newline at end of file diff --git a/src/example/xterrabot.py b/src/example/xterrabot.py index 4fb022e..681c33a 100644 --- a/src/example/xterrabot.py +++ b/src/example/xterrabot.py @@ -13,13 +13,9 @@ def __init__(self) -> None: self._logger = logging.getLogger(__name__) # b is the mobile base # d is the camera - self._T_d_b = np.array( - [[0, 0, -1, 250], [0, -1, 0, -150], [-1, 0, 0, 200], [0, 0, 0, 1]] - ) + self._T_d_b = np.array([[0, 0, -1, 250], [0, -1, 0, -150], [-1, 0, 0, 200], [0, 0, 0, 1]]) - self._T_d_e = np.array( - [[0, 0, -1, 300], [0, -1, 0, 100], [-1, 0, 0, 120], [0, 0, 0, 1]] - ) # e is the object + self._T_d_e = np.array([[0, 0, -1, 300], [0, -1, 0, 100], [-1, 0, 0, 120], [0, 0, 0, 1]]) # e is the object self._T_b_c = np.array( [ [0, -1 / np.sqrt(2), -1 / np.sqrt(2), 30], @@ -28,9 +24,7 @@ def __init__(self) -> None: [0, 0, 0, 1], ] ) # c is the joint of the gripper - self._T_a_d = np.array( - [[0, 0, -1, 400], [0, -1, 0, 50], [-1, 0, 0, 300], [0, 0, 0, 1]] - ) # a is the root + self._T_a_d = np.array([[0, 0, -1, 400], [0, -1, 0, 50], [-1, 0, 0, 300], [0, 0, 0, 1]]) # a is the root def get_object_in_gripper_frame(self) -> npt.NDArray[np.float64]: T_c_e = (