Skip to content

Commit 4b28496

Browse files
authored
Use the Python mirror for clang-format in pre-commit config (UniversalRobots#1391)
This will not require users to have a specific clang-format version installed. Also, this will be updated automatically, so we are not stuck with an old clang-format version. If formatting changes come in from a newer clang-format version, we can adapt our config whenever that happens.
1 parent 51da629 commit 4b28496

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,10 @@ repos:
8686
files: \.(h\+\+|h|hh|hxx|hpp|cuh|c|cc|cpp|cu|c\+\+|cxx|tpp|txx)$
8787
args: ["--linelength=120"]
8888

89-
- repo: local
89+
- repo: https://github.com/pre-commit/mirrors-clang-format
90+
rev: 'v20.1.5'
9091
hooks:
9192
- id: clang-format
92-
name: clang-format
93-
description: Format files with ClangFormat.
94-
entry: clang-format-14
95-
language: system
96-
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|proto|vert)$
97-
args: ['-fallback-style=none', '-i']
9893

9994
# Cmake hooks
10095
- repo: local

0 commit comments

Comments
 (0)