Skip to content

Commit

Permalink
use ament_cmake_mypy instead
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carlstrom <[email protected]>
  • Loading branch information
InvincibleRMC committed Oct 4, 2024
1 parent 1a08266 commit e0d3f6e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 25 deletions.
1 change: 1 addition & 0 deletions rosidl_adapter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ament_python_install_package(${PROJECT_NAME})
if(BUILD_TESTING)
find_package(ament_cmake_pytest REQUIRED)
find_package(ament_lint_auto REQUIRED)
find_package(ament_cmake_mypy REQUIRED)
ament_lint_auto_find_test_dependencies()
ament_add_pytest_test(pytest test)
endif()
Expand Down
2 changes: 1 addition & 1 deletion rosidl_adapter/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
<exec_depend>python3-empy</exec_depend>
<exec_depend>rosidl_cli</exec_depend>

<test_depend>ament_cmake_mypy</test_depend>
<test_depend>ament_cmake_pytest</test_depend>
<test_depend>ament_lint_common</test_depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_mypy</test_depend>

<export>
<build_type>ament_cmake</build_type>
Expand Down
2 changes: 1 addition & 1 deletion rosidl_adapter/rosidl_adapter/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ def validate_field_types(spec: Union[MessageSpecification,
known_msg_types: List[BaseType]) -> None:
if isinstance(spec, MessageSpecification):
spec_type = 'Message'
fields = spec.fields
fields: List[Field] = spec.fields
elif isinstance(spec, ServiceSpecification):
spec_type = 'Service'
fields = spec.request.fields + spec.response.fields
Expand Down
23 changes: 0 additions & 23 deletions rosidl_adapter/test/test_mypy.py

This file was deleted.

0 comments on commit e0d3f6e

Please sign in to comment.