Skip to content

Commit 7d02a5c

Browse files
committed
CI: Update pre-commit hooks
1 parent cc7f9f0 commit 7d02a5c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/format.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
- uses: actions/checkout@v4
1717
with:
1818
submodules: recursive
19-
- name: Install clang-format-12
20-
run: sudo apt-get install clang-format-12
21-
- uses: pre-commit/action@v3.0.1
19+
- name: Install clang-format-14
20+
run: sudo apt-get install clang-format-14
21+
- uses: rhaschke/pre-commit-action@main
2222
id: precommit
2323
- name: Upload pre-commit changes
2424
if: failure() && steps.precommit.outcome == 'failure'

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
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.0.1
18+
rev: v5.0.0
1919
hooks:
2020
- id: check-added-large-files
2121
- id: check-case-conflict
@@ -29,7 +29,7 @@ repos:
2929
- id: trailing-whitespace
3030

3131
- repo: https://github.com/psf/black
32-
rev: 24.8.0
32+
rev: 24.10.0
3333
hooks:
3434
- id: black
3535
args: ["--line-length", "100"]
@@ -39,7 +39,7 @@ repos:
3939
- id: clang-format
4040
name: clang-format
4141
description: Format files with ClangFormat.
42-
entry: clang-format-12
42+
entry: clang-format-14
4343
language: system
4444
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|proto|vert)$
4545
args: ["-fallback-style=none", "-i"]

0 commit comments

Comments
 (0)