I'm trying to use a different python linter than flake8 because flake8 doesn't automatically correct your files.
ament_black is much better for new projects not in the ROS core because developers don't need to spend time on manual formatting.
https://github.com/botsandus/ament_black
I create a package foo, and I also like using ament_lint_auto to specify all my linter dependencies. I do NOT depend on ament_lint_common because that has flake8, and flake8 doesn't agree with black.
Use case with current behavior
I'm trying to use a different python linter than flake8 because flake8 doesn't automatically correct your files.
ament_black
is much better for new projects not in the ROS core because developers don't need to spend time on manual formatting. https://github.com/botsandus/ament_blackI create a package foo, and I also like using
ament_lint_auto
to specify all my linter dependencies. I do NOT depend on ament_lint_common because that has flake8, and flake8 doesn't agree with black.package.xml
CMakeLists.txt
Great!
Now, run the tests
Oh no! flake8 is running, even though my package doesn't have test dependencies on it, nor does it use ament_lint_common!
Environment
0.12.8-1jammy.20230919.193849
Desired behavior
I am not forced to use linters I do not put in my package.xml as test_depend.