Skip to content

Commit 5ea5353

Browse files
dcantrellevan-goode
authored andcommitted
Add .pre-commit-config.yaml
Based off the one from dnf5, stripped of irrelevant parts. Signed-off-by: Dave Cantrell <dcantrell@redhat.com>
1 parent 04b92a6 commit 5ea5353

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
- id: check-xml
10+
- id: check-added-large-files
11+
- id: check-merge-conflict
12+
- repo: https://github.com/pre-commit/mirrors-clang-format
13+
rev: v19.1.0
14+
hooks:
15+
- id: clang-format
16+
types_or:
17+
- c++
18+
- repo: https://github.com/hhatto/autopep8
19+
rev: v2.2.0
20+
hooks:
21+
- id: autopep8
22+
args: [-i, --max-line-length=120]
23+
- repo: https://github.com/rpm-software-management/rpmlint.git
24+
rev: 2.5.0
25+
hooks:
26+
- id: rpmlint
27+
# Passes if packit not installed. Needed for validation locally
28+
- repo: https://github.com/packit/pre-commit-hooks
29+
rev: v1.2.0
30+
hooks:
31+
- id: validate-config

0 commit comments

Comments
 (0)