Skip to content

Commit f90497f

Browse files
committed
pre-commit: added clang-format
1 parent c328729 commit f90497f

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.clang-format

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
BasedOnStyle: Chromium
2+
SortIncludes: false
3+
ColumnLimit: 120

.pre-commit-config.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ repos:
3535
args: [-w]
3636

3737
- repo: https://github.com/astral-sh/ruff-pre-commit
38-
rev: v0.15.0
38+
rev: v0.15.1
3939
hooks:
4040
- id: ruff-check
4141
args: [--fix, --exit-non-zero-on-fix]
@@ -47,8 +47,14 @@ repos:
4747
- id: cmake-format
4848
- id: cmake-lint
4949

50+
- repo: https://github.com/pre-commit/mirrors-clang-format
51+
rev: v21.1.8
52+
hooks:
53+
- id: clang-format
54+
types_or: [c++, proto]
55+
5056
- repo: https://github.com/tier4/pre-commit-hooks-ros
51-
rev: v0.10.0
57+
rev: v0.10.1
5258
hooks:
5359
- id: prettier-xacro
5460
- id: prettier-package-xml

0 commit comments

Comments
 (0)