File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111jobs :
1212 pre-commit :
1313 name : Format
14- runs-on : ubuntu-latest
14+ runs-on : ubuntu-24.04
1515 steps :
1616 - uses : actions/checkout@v4
1717 - name : Install ament linters
2121 sudo sh -c 'echo "deb [arch=$(dpkg --print-architecture)] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/ros2-latest.list'
2222 sudo apt-get update
2323 sudo apt-get install -y ros-rolling-ament-lint-common python3-pip
24- sudo pip3 install pre-commit
24+ - name : Install clang-format
25+ run : sudo apt-get install -y clang-format-14
26+ - name : Install pre-commit
27+ run : sudo python -m pip install pre-commit --break-system-packages
2528 - name : Run pre-commit
2629 run : |
2730 source /opt/ros/rolling/setup.sh
Original file line number Diff line number Diff line change 1515repos :
1616 # Standard hooks
1717 - repo : https://github.com/pre-commit/pre-commit-hooks
18- rev : v4.6 .0
18+ rev : v5.0 .0
1919 hooks :
2020 - id : check-added-large-files
2121 - id : check-ast
You can’t perform that action at this time.
0 commit comments