How to configure ament python linters in CMakeLists?

asked 2020-04-29 22:33:09 -0600

I have a ROS2 Eloquent C++ package with some python files (for example, python launch scripts) which I would like to lint.

I have the linters included in the packages.xml

<test_depend>ament_cmake_pep257</test_depend>

And have them running in the test section of the CMakeLists

ament_lint_auto_find_test_dependencies()

The linters are running and correctly when I run colcon test and are failing my *.launch.py because they violate certain rules I don't want to enforce. How do I pass in an ignore list for these?

For example, how would have colcon test replicate the results of ament_pip257 --ignore D400?

edit retag flag offensive close merge delete