Skip to content

Commit a6155ea

Browse files
committed
CI: Fix+Update pre-commit
1 parent f8b16d4 commit a6155ea

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/format.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
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
@@ -21,7 +21,10 @@ jobs:
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

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
repos:
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

0 commit comments

Comments
 (0)