diff --git a/.ament_flake8.ini b/.ament_flake8.ini new file mode 100644 index 0000000..2eafac0 --- /dev/null +++ b/.ament_flake8.ini @@ -0,0 +1,6 @@ +[flake8] +extend-ignore = B902,C816,D100,D101,D102,D103,D104,D105,D106,D107,D203,D212,D404,I202,Q000 +import-order-style = google +max-line-length = 99 +show-source = true +statistics = true diff --git a/CMakeLists.txt b/CMakeLists.txt index 3aa77f4..2e08aa6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,6 +96,7 @@ if(BUILD_TESTING) set(ament_cmake_cppcheck_FOUND TRUE) set(ament_cmake_cpplint_FOUND TRUE) set(ament_cmake_uncrustify_FOUND TRUE) + set(ament_cmake_flake8_CONFIG_FILE ".ament_flake8.ini") ament_lint_auto_find_test_dependencies() endif() diff --git a/launch/demo_rviz.launch.py b/launch/demo_rviz.launch.py index a0b9aa7..5c08233 100644 --- a/launch/demo_rviz.launch.py +++ b/launch/demo_rviz.launch.py @@ -28,9 +28,10 @@ import os + +from ament_index_python.packages import get_package_share_directory from launch import LaunchDescription from launch_ros.actions import Node -from ament_index_python.packages import get_package_share_directory def load_file(package_name, file_path):