From 0ba7557832dd46835d72f79adcda3d742dd7fe1f Mon Sep 17 00:00:00 2001 From: "Felix Exner (fexner)" Date: Wed, 24 Apr 2024 14:33:10 +0200 Subject: [PATCH] Update pre-commit CI job (#8) Update pre-commit version and hooks --- .github/workflows/pre-commit.yml | 10 +++++----- .pre-commit-config.yaml | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 18951de..f0eab06 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -5,15 +5,15 @@ on: jobs: pre-commits: name: pre-commit - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: - python-version: 3.9.7 + python-version: '3.10' - name: "Install dependencies" run: | python -m pip install catkin_lint - - uses: pre-commit/action@v2.0.3 + - uses: pre-commit/action@v3.0.0 with: extra_args: --all-files --hook-stage manual diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 076d309..876b8d9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.3.0 + rev: v4.6.0 hooks: - id: check-added-large-files - id: check-docstring-first @@ -12,7 +12,7 @@ repos: - id: mixed-line-ending - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 21.12b0 + rev: 24.4.0 hooks: - id: black args: ["--line-length=100"]