From 2cf28df9ed7bf09a85ee62f1cf4a12fa20e7b840 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Sun, 13 Oct 2024 22:09:43 +0200 Subject: [PATCH] CI: Fix+Update pre-commit --- .github/workflows/format.yaml | 3 ++- .pre-commit-config.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index d234f23..3ce8e7d 100644 --- a/.github/workflows/format.yaml +++ b/.github/workflows/format.yaml @@ -21,7 +21,8 @@ jobs: 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' sudo apt-get update sudo apt-get install -y ros-rolling-ament-lint-common python3-pip - sudo pip3 install pre-commit + sudo python -m pip install --upgrade pip + sudo python -m pip install pre-commit --break-system-packages - name: Run pre-commit run: | source /opt/ros/rolling/setup.sh diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 734c690..8f042ab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: # Standard hooks - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-added-large-files - id: check-ast