-
Notifications
You must be signed in to change notification settings - Fork 19
/
.pre-commit-config.yaml
36 lines (35 loc) · 1.18 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: mixed-line-ending
- id: trailing-whitespace
exclude: (doc/ReleaseNotes.md|test/inputFiles/.*\.expected)
- repo: local
hooks:
# - id: clang-tidy
# name: clang-tidy
# entry: clang-tidy -warnings-as-errors='*' -p compile_commands.json
# types: [c++]
# exclude: (tests/(datamodel|src)/.*(h|cc)|podioVersion.in.h)
# language: system
- id: clang-format
name: clang-format
entry: .github/scripts/clang-format-hook
types: [c++]
language: system
- id: ruff-format
name: ruff-format
entry: ruff format --force-exclude
types: [python]
language: system
- repo: https://github.com/johann-petrak/licenseheaders.git
rev: 'v0.8.8'
hooks:
- id: licenseheaders
args: ["-t", ".github/templates/apache-2.tmpl", "-y2019-2024",
"-o", "Key4hep-Project",
"-n", "Key4hep",
"-u", "https://key4hep.github.io/key4hep-doc/",
"-x", ".github/*", ".pre-commit-config.yaml", "README.md", "doc/ReleaseNotes.md", ".clang-format",
"-f",]