Python linting and formatting based on ruff with ament
integration.
See here.
See here.
Install ruff first:
pip install ruff
# You may have to set your path to include ruff's binary location:
export PATH=$PATH:$HOME/.local/bin
# Or do so permanently in bash
echo "export PATH=$PATH:$HOME/.local/bin" >> .bashrc
Clone this repository into your workspace and build it:
# make a workspace if you don't have one
mkdir -p ~/ws/ament_ruff/src
cd ~/ws/ament_ruff/src
git clone https://github.com/swri-robotics/ament_ruff.git
cd ..
colcon build
source install/setup.bash