I’ve made a tool that might help some people on this thread or anyone who wanders here:
ament_ruff is ruff with ament integration.
Some highlights:
- I tried my best to adjust the included
ruff.tomlfile so that it can work with the configuration set inament_flake8, but I’m sure I’ve missed a couple things that my code base doesn’t trigger. ruffmay have added some import sorting configuration since some of the discussion here, so I’ve tried to make that match the google import style as well.- Like other
ament_linttools, it supports cli and cmake interfaces. The cli allows for error-checking and automatic reformatting (ifruffcan fix the issue safely)