From 2a4a74f233aa94391134ffe472dc3c6716d255b5 Mon Sep 17 00:00:00 2001 From: dhood Date: Tue, 31 Jan 2017 17:00:55 -0800 Subject: [PATCH] Replace pep8+pyflakes with flake8 --- .../rosidl_generator_py_generate_interfaces.cmake | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake b/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake index 6cb5a3540..3b5efbd1b 100644 --- a/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake +++ b/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake @@ -288,9 +288,9 @@ if(BUILD_TESTING AND rosidl_generate_interfaces_ADD_LINTER_TESTS) ROOT "${_cpplint_root}" "${_output_path}") - find_package(ament_cmake_pep8 REQUIRED) - ament_pep8( - TESTNAME "pep8_rosidl_generated_py" + find_package(ament_cmake_flake8 REQUIRED) + ament_flake8( + TESTNAME "flake8_rosidl_generated_py" # the generated code might contain longer lines for templated types MAX_LINE_LENGTH 999 "${_output_path}") @@ -300,11 +300,6 @@ if(BUILD_TESTING AND rosidl_generate_interfaces_ADD_LINTER_TESTS) TESTNAME "pep257_rosidl_generated_py" "${_output_path}") - find_package(ament_cmake_pyflakes REQUIRED) - ament_pyflakes( - TESTNAME "pyflakes_rosidl_generated_py" - "${_output_path}") - find_package(ament_cmake_uncrustify REQUIRED) ament_uncrustify( TESTNAME "uncrustify_rosidl_generated_py"