Skip to content

Commit adb8897

Browse files
authored
[CI] Use clangformat hook and don't install it manually (ros-controls#1007)
* [CI] Use clangformat hhok and don't install it manually * Don't install manually clang-format
1 parent 0be5b91 commit adb8897

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.github/workflows/ci-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
python-version: '3.10'
1919
- name: Install system hooks
20-
run: sudo apt install -qq clang-format-14 cppcheck
20+
run: sudo apt install -qq cppcheck
2121
- uses: pre-commit/[email protected]
2222
with:
2323
extra_args: --all-files --hook-stage manual

.pre-commit-config.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,10 @@ repos:
6161
args: ["--extend-ignore=E501"]
6262

6363
# CPP hooks
64-
- repo: local
64+
- repo: https://github.com/pre-commit/mirrors-clang-format
65+
rev: v14.0.6
6566
hooks:
6667
- id: clang-format
67-
name: clang-format
68-
description: Format files with ClangFormat.
69-
entry: clang-format-14
70-
language: system
71-
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|proto|vert)$
72-
args: ['-fallback-style=none', '-i']
7368

7469
- repo: local
7570
hooks:

0 commit comments

Comments
 (0)