Skip to content

Commit 7e13841

Browse files
committed
allow run in parallel and pin clang-tools version
1 parent f345167 commit 7e13841

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-hooks.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
entry: clang-format-hook
55
language: python
66
files: \.(h\+\+|h|hh|hxx|hpp|c|cc|cpp|c\+\+|cxx)$
7-
require_serial: true
7+
require_serial: false
88

99
- id: clang-tidy
1010
name: clang-tidy
1111
description: Automatically install any specific version of clang-tidy and diagnose/fix typical programming errors
1212
entry: clang-tidy-hook
1313
language: python
1414
files: \.(h\+\+|h|hh|hxx|hpp|c|cc|cpp|c\+\+|cxx)$
15-
require_serial: true
15+
require_serial: false

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ requires-python = ">=3.9"
66

77
[project]
88
name = "cpp_linter_hooks"
9-
description = "Automatically formats and lints C/C++ code using clang-format and clang-tidy Python wheels"
9+
description = "Automatically formats and lints C/C++ code using clang-format and clang-tidy"
1010
readme = "README.md"
1111
keywords = ["clang", "clang-format", "clang-tidy", "pre-commit", "pre-commit-hooks"]
1212
license = "MIT"
@@ -32,8 +32,8 @@ classifiers = [
3232
"Topic :: Software Development :: Build Tools",
3333
]
3434
dependencies = [
35-
"clang-format",
36-
"clang-tidy",
35+
"clang-format==20.1.7",
36+
"clang-tidy==20.1.0",
3737
]
3838
dynamic = ["version"]
3939

0 commit comments

Comments
 (0)