Skip to content

Commit

Permalink
replace ament linters with pre-commit and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygerardmoore committed Sep 23, 2024
1 parent 04c3dc9 commit 46ab0f2
Show file tree
Hide file tree
Showing 22 changed files with 1 addition and 73 deletions.
3 changes: 0 additions & 3 deletions fuse_constraints/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ target_include_directories(${PROJECT_NAME} PRIVATE ${SUITESPARSE_INCLUDE_DIRS})
# ##############################################################################

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()

add_subdirectory(test)
add_subdirectory(benchmark)
endif()
Expand Down
2 changes: 0 additions & 2 deletions fuse_constraints/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
<exec_depend>rclcpp</exec_depend>

<test_depend>ament_cmake_gtest</test_depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
<test_depend>benchmark</test_depend>

<export>
Expand Down
3 changes: 0 additions & 3 deletions fuse_core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ rclcpp_components_register_node(
# ##############################################################################

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()

add_subdirectory(test)
endif()

Expand Down
2 changes: 0 additions & 2 deletions fuse_core/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@

<test_depend>ament_cmake_gtest</test_depend>
<test_depend>ament_cmake_pytest</test_depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
<test_depend>geometry_msgs</test_depend>
<test_depend>launch</test_depend>
<test_depend>launch_pytest</test_depend>
Expand Down
3 changes: 0 additions & 3 deletions fuse_graphs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ target_link_libraries(
# ##############################################################################

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()

add_subdirectory(test)

# Benchmarks
Expand Down
2 changes: 0 additions & 2 deletions fuse_graphs/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@

<test_depend>benchmark</test_depend>
<test_depend>ament_cmake_gtest</test_depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>

<export>
<build_type>ament_cmake</build_type>
Expand Down
3 changes: 0 additions & 3 deletions fuse_loss/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ target_link_libraries(${PROJECT_NAME} PUBLIC Ceres::ceres fuse_core::fuse_core
# ##############################################################################

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()

add_subdirectory(test)
endif()

Expand Down
2 changes: 0 additions & 2 deletions fuse_loss/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
<test_depend>qtbase5-dev</test_depend>
<test_depend>libqwt-qt5-dev</test_depend>
<test_depend>ament_cmake_gtest</test_depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>

<export>
<build_type>ament_cmake</build_type>
Expand Down
6 changes: 0 additions & 6 deletions fuse_models/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,6 @@ target_link_libraries(
# ##############################################################################

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)

# This is because these two files have unsuitable copyrights
set(_linter_excludes test/test_sensor_proc.cpp test/test_unicycle_2d.cpp)
set(AMENT_LINT_AUTO_FILE_EXCLUDE ${_linter_excludes})
ament_lint_auto_find_test_dependencies()
add_subdirectory(test)
add_subdirectory(benchmark)
endif()
Expand Down
2 changes: 0 additions & 2 deletions fuse_models/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@
<test_depend>benchmark</test_depend>
<test_depend>ament_cmake_gtest</test_depend>
<test_depend>ament_cmake_gmock</test_depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>

<export>
<build_type>ament_cmake</build_type>
Expand Down
5 changes: 0 additions & 5 deletions fuse_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,5 @@ rosidl_generate_interfaces(
geometry_msgs
ADD_LINTER_TESTS)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()

ament_export_dependencies(rosidl_default_runtime)
ament_package()
3 changes: 0 additions & 3 deletions fuse_msgs/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@

<exec_depend>rosidl_default_runtime</exec_depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>

<member_of_group>rosidl_interface_packages</member_of_group>

<export>
Expand Down
3 changes: 1 addition & 2 deletions fuse_optimizers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ target_link_libraries(fixed_lag_smoother_node ${PROJECT_NAME})
# ##############################################################################

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
find_package(nav_msgs REQUIRED)
add_subdirectory(test)
endif()

Expand Down
2 changes: 0 additions & 2 deletions fuse_optimizers/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@
<exec_depend>std_srvs</exec_depend>

<test_depend>ament_cmake_gtest</test_depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
<test_depend>fuse_models</test_depend>
<test_depend>geometry_msgs</test_depend>
<test_depend>nav_msgs</test_depend>
Expand Down
2 changes: 0 additions & 2 deletions fuse_publishers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ target_link_libraries(
# ##############################################################################

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
add_subdirectory(test)
endif()

Expand Down
2 changes: 0 additions & 2 deletions fuse_publishers/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
<exec_depend>tf2_ros</exec_depend>

<test_depend>ament_cmake_gtest</test_depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
<test_depend>fuse_constraints</test_depend>
<test_depend>fuse_graphs</test_depend>
<test_depend>rclcpp</test_depend>
Expand Down
9 changes: 0 additions & 9 deletions fuse_tutorials/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@ target_link_libraries(
add_executable(range_sensor_simulator src/range_sensor_simulator.cpp)
target_link_libraries(range_sensor_simulator ${PROJECT_NAME})

# ##############################################################################
# Testing ##
# ##############################################################################

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()

# ##############################################################################
# Install ##
# ##############################################################################
Expand Down
3 changes: 0 additions & 3 deletions fuse_tutorials/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@
<exec_depend>rviz2</exec_depend>
<exec_depend>sensor_msgs</exec_depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>

<export>
<build_type>ament_cmake</build_type>
<fuse_core plugin="${prefix}/fuse_plugins.xml" />
Expand Down
3 changes: 0 additions & 3 deletions fuse_variables/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ target_link_libraries(${PROJECT_NAME} PUBLIC Ceres::ceres fuse_core::fuse_core
# ##############################################################################

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()

add_subdirectory(test)
endif()

Expand Down
2 changes: 0 additions & 2 deletions fuse_variables/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@

<test_depend>ament_cmake_gtest</test_depend>
<test_depend>ament_cmake_pytest</test_depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
<test_depend>rclcpp</test_depend>

<export>
Expand Down
9 changes: 0 additions & 9 deletions fuse_viz/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,4 @@ install(DIRECTORY include/ DESTINATION include/${PROJECT_NAME})

pluginlib_export_plugin_description_file(rviz_common rviz_plugins.xml)

# ##############################################################################
# Testing ##
# ##############################################################################

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()

ament_package()
3 changes: 0 additions & 3 deletions fuse_viz/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
<depend>rviz_rendering</depend>
<depend>tf2_geometry_msgs</depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>

<export>
<build_type>ament_cmake</build_type>
</export>
Expand Down

0 comments on commit 46ab0f2

Please sign in to comment.