Skip to content

Commit

Permalink
(pykdl_ros) also run isort
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Sep 7, 2023
1 parent 9ec9b88 commit 9743829
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 26 deletions.
1 change: 1 addition & 0 deletions tf2_pykdl_ros/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<test_depend>builtin_interfaces</test_depend>
<test_depend>rclpy</test_depend>
<test_depend>tf2_geometry_msgs</test_depend>
<test_depend>python3-flake8-isort</test_depend>
<test_depend>python3-pytest</test_depend>

<export>
Expand Down
3 changes: 3 additions & 0 deletions tf2_pykdl_ros/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[tool.black]
line-length = 120

[tool.isort]
line_length = 120

[tool.pytest.ini_options]
filterwarnings = ["ignore:SelectableGroups dict interface is deprecated. Use select.:DeprecationWarning"]
1 change: 1 addition & 0 deletions tf2_pykdl_ros/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from os import path

from setuptools import find_packages, setup

package_name = "tf2_pykdl_ros"
Expand Down
2 changes: 1 addition & 1 deletion tf2_pykdl_ros/test/test_copyright.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from ament_copyright.main import main
import pytest
from ament_copyright.main import main


# Remove the `skip` decorator once the source file(s) have a copyright header
Expand Down
2 changes: 1 addition & 1 deletion tf2_pykdl_ros/test/test_flake8.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from ament_flake8.main import main_with_errors
import pytest
from ament_flake8.main import main_with_errors


@pytest.mark.flake8
Expand Down
2 changes: 1 addition & 1 deletion tf2_pykdl_ros/test/test_pep257.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from ament_pep257.main import main
import pytest
from ament_pep257.main import main


@pytest.mark.linter
Expand Down
17 changes: 7 additions & 10 deletions tf2_pykdl_ros/test/test_tf2_ros_integration.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import unittest

from builtin_interfaces.msg import Time
from geometry_msgs.msg import (
PointStamped,
PoseStamped,
TransformStamped,
TwistStamped as TwistStampedMsg,
WrenchStamped as WrenchStampedMsg,
)
import PyKDL as kdl
from pykdl_ros import VectorStamped, FrameStamped, TwistStamped, WrenchStamped
import tf2_ros
import tf2_geometry_msgs # noqa: F401
import tf2_ros
from builtin_interfaces.msg import Time
from geometry_msgs.msg import PointStamped, PoseStamped, TransformStamped
from geometry_msgs.msg import TwistStamped as TwistStampedMsg
from geometry_msgs.msg import WrenchStamped as WrenchStampedMsg
from pykdl_ros import FrameStamped, TwistStamped, VectorStamped, WrenchStamped

import tf2_pykdl_ros # noqa: F401


Expand Down
11 changes: 6 additions & 5 deletions tf2_pykdl_ros/test/test_tf2_ros_transform_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

import unittest

from builtin_interfaces.msg import Time
from geometry_msgs.msg import TransformStamped
import PyKDL as kdl
from pykdl_ros import VectorStamped, FrameStamped, TwistStamped, WrenchStamped
import rclpy
from rclpy.duration import Duration
import tf2_ros
import tf2_geometry_msgs # noqa: F401
import tf2_ros
from builtin_interfaces.msg import Time
from geometry_msgs.msg import TransformStamped
from pykdl_ros import FrameStamped, TwistStamped, VectorStamped, WrenchStamped
from rclpy.duration import Duration

import tf2_pykdl_ros # noqa: F401


Expand Down
13 changes: 5 additions & 8 deletions tf2_pykdl_ros/tf2_pykdl_ros/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
from typing import Union
from geometry_msgs.msg import (
PointStamped,
PoseStamped,
TransformStamped,
TwistStamped as TwistStampedMsg,
WrenchStamped as WrenchStampedMsg,
)

import PyKDL as kdl
from pykdl_ros import VectorStamped, FrameStamped, TwistStamped, WrenchStamped
import tf2_ros
from geometry_msgs.msg import PointStamped, PoseStamped, TransformStamped
from geometry_msgs.msg import TwistStamped as TwistStampedMsg
from geometry_msgs.msg import WrenchStamped as WrenchStampedMsg
from pykdl_ros import FrameStamped, TwistStamped, VectorStamped, WrenchStamped


def transform_to_kdl(t: TransformStamped) -> kdl.Frame:
Expand Down

0 comments on commit 9743829

Please sign in to comment.