Skip to content

Commit 1847002

Browse files
committed
pre-commit: faster/auto-fixing clang-format hook
1 parent 6bbac7d commit 1847002

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,12 @@ repos:
6161
# files: (\.cmake|CMakeLists.txt)(.in)?$
6262

6363
# C++ formatting
64-
# clang-format
65-
- repo: local
64+
# clang-format v12
65+
# to run manually, use .github/workflows/clang-format/clang-format.sh
66+
- repo: https://github.com/pre-commit/mirrors-clang-format
67+
rev: v12.0.1
6668
hooks:
6769
- id: clang-format
68-
name: clang-format
69-
description: Clang-format our code base
70-
files: '^(include|src|test|examples)/.*\.(hpp|cpp|hpp\.in)$'
71-
language: conda
72-
entry: bash .github/workflows/clang-format/clang-format.sh
73-
additional_dependencies: [-c, conda-forge, clang-format-12]
7470

7571
# Autoremoves unused Python imports
7672
- repo: https://github.com/hadialqattan/pycln

0 commit comments

Comments
 (0)