Skip to content

Commit 0ba7557

Browse files
authored
Update pre-commit CI job (#8)
Update pre-commit version and hooks
1 parent 57f5b49 commit 0ba7557

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/pre-commit.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ on:
55
jobs:
66
pre-commits:
77
name: pre-commit
8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-22.04
99
steps:
10-
- uses: actions/checkout@v2
11-
- uses: actions/setup-python@v2
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-python@v4
1212
with:
13-
python-version: 3.9.7
13+
python-version: '3.10'
1414
- name: "Install dependencies"
1515
run: |
1616
python -m pip install catkin_lint
17-
- uses: pre-commit/action@v2.0.3
17+
- uses: pre-commit/action@v3.0.0
1818
with:
1919
extra_args: --all-files --hook-stage manual

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v2.3.0
4+
rev: v4.6.0
55
hooks:
66
- id: check-added-large-files
77
- id: check-docstring-first
@@ -12,7 +12,7 @@ repos:
1212
- id: mixed-line-ending
1313
- id: trailing-whitespace
1414
- repo: https://github.com/psf/black
15-
rev: 21.12b0
15+
rev: 24.4.0
1616
hooks:
1717
- id: black
1818
args: ["--line-length=100"]

0 commit comments

Comments
 (0)