Skip to content

Commit d36aef7

Browse files
committed
CI: Fix ament_flake8 issues
1 parent 971fe13 commit d36aef7

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.ament_flake8.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[flake8]
2+
extend-ignore = B902,C816,D100,D101,D102,D103,D104,D105,D106,D107,D203,D212,D404,I202,Q000
3+
import-order-style = google
4+
max-line-length = 99
5+
show-source = true
6+
statistics = true

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ if(BUILD_TESTING)
9696
set(ament_cmake_cppcheck_FOUND TRUE)
9797
set(ament_cmake_cpplint_FOUND TRUE)
9898
set(ament_cmake_uncrustify_FOUND TRUE)
99+
set(ament_cmake_flake8_CONFIG_FILE ".ament_flake8.ini")
99100
ament_lint_auto_find_test_dependencies()
100101
endif()
101102

launch/demo_rviz.launch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828

2929

3030
import os
31+
32+
from ament_index_python.packages import get_package_share_directory
3133
from launch import LaunchDescription
3234
from launch_ros.actions import Node
33-
from ament_index_python.packages import get_package_share_directory
3435

3536

3637
def load_file(package_name, file_path):

0 commit comments

Comments
 (0)