Skip to content

Commit 0d1a476

Browse files
authored
[Infrastructure] Add pre-commit hooks (AliceO2Group#9461)
1 parent 6729d02 commit 0d1a476

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/labeler.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ infrastructure:
1616
- '.github/**'
1717
- '.checkov.yml'
1818
- '.mega-linter.yml'
19+
- '.pre-commit-config.yaml'
1920
- 'cmake/**'
2021
- 'CODEOWNERS'
2122
- 'CPPLINT.cfg'

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v5.0.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- repo: https://github.com/pre-commit/mirrors-clang-format
10+
rev: "v18.1.3" # clang-format version
11+
hooks:
12+
- id: clang-format

0 commit comments

Comments
 (0)