Skip to content

Commit

Permalink
Enable ament_mypy test
Browse files Browse the repository at this point in the history
  • Loading branch information
bjsowa committed Dec 17, 2024
1 parent 460d202 commit 5a7a3d7
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rosapi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ if(BUILD_TESTING)
find_package(ament_cmake_pytest REQUIRED)
ament_add_pytest_test(${PROJECT_NAME}_test_stringify_field_types test/test_stringify_field_types.py)
ament_add_pytest_test(${PROJECT_NAME}_test_typedefs test/test_typedefs.py)

find_package(ament_cmake_mypy REQUIRED)
ament_mypy()
endif()
1 change: 1 addition & 0 deletions rosapi/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<exec_depend>rosgraph</exec_depend>
-->

<test_depend>ament_cmake_mypy</test_depend>
<test_depend>ament_cmake_pytest</test_depend>
<test_depend>sensor_msgs</test_depend>
<test_depend>shape_msgs</test_depend>
Expand Down
3 changes: 3 additions & 0 deletions rosbridge_library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ if (BUILD_TESTING)
find_package(ament_cmake_pytest REQUIRED)
ament_add_pytest_test(test_capabilities "test/capabilities/")
ament_add_pytest_test(test_internal "test/internal/")

find_package(ament_cmake_mypy REQUIRED)
ament_mypy()
endif()
1 change: 1 addition & 0 deletions rosbridge_library/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

<test_depend>rosbridge_test_msgs</test_depend>
<test_depend>action_msgs</test_depend>
<test_depend>ament_cmake_mypy</test_depend>
<test_depend>ament_cmake_pytest</test_depend>
<test_depend>builtin_interfaces</test_depend>
<test_depend>diagnostic_msgs</test_depend>
Expand Down
3 changes: 3 additions & 0 deletions rosbridge_server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ if(BUILD_TESTING)
add_launch_test(test/websocket/transient_local_publisher.test.py)
add_launch_test(test/websocket/best_effort_publisher.test.py)
add_launch_test(test/websocket/multiple_subscribers_raw.test.py)

find_package(ament_cmake_mypy REQUIRED)
ament_mypy()
endif()
1 change: 1 addition & 0 deletions rosbridge_server/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<exec_depend>rosbridge_msgs</exec_depend>
<exec_depend>rosapi</exec_depend>

<test_depend>ament_cmake_mypy</test_depend>
<test_depend>example_interfaces</test_depend>
<test_depend>python3-autobahn</test_depend>
<test_depend>launch</test_depend>
Expand Down

0 comments on commit 5a7a3d7

Please sign in to comment.