Skip to content

Commit 44d9ac7

Browse files
committed
Added pre-commit configuration
1 parent a34c648 commit 44d9ac7

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

.pre-commit-config.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
default_stages: [pre-commit, pre-push]
3+
4+
repos:
5+
#############################################################################
6+
# Meta #
7+
#############################################################################
8+
9+
- repo: meta
10+
hooks:
11+
- id: check-hooks-apply
12+
- id: check-useless-excludes
13+
# Identity prints all arguments (files) passed to it; for testing
14+
# - id: identity
15+
16+
#############################################################################
17+
# Core Hooks #
18+
#############################################################################
19+
20+
- repo: https://github.com/pre-commit/pre-commit-hooks
21+
rev: v5.0.0
22+
hooks:
23+
- id: check-added-large-files
24+
- id: check-case-conflict
25+
- id: check-merge-conflict
26+
- id: check-symlinks
27+
- id: detect-private-key
28+
- id: end-of-file-fixer
29+
- id: fix-byte-order-marker
30+
- id: mixed-line-ending
31+
- id: trailing-whitespace
32+
33+
#############################################################################
34+
# Git #
35+
#############################################################################
36+
37+
- repo: https://github.com/commitizen-tools/commitizen
38+
rev: v4.8.2
39+
hooks:
40+
- id: commitizen
41+
42+
- repo: https://github.com/jorisroovers/gitlint
43+
rev: v0.19.1
44+
hooks:
45+
- id: gitlint
46+
47+
#############################################################################
48+
# GitHub #
49+
#############################################################################
50+
51+
- repo: https://github.com/rhysd/actionlint
52+
rev: v1.7.4
53+
hooks:
54+
- id: actionlint
55+
56+
#############################################################################
57+
# ClangFormat #
58+
#############################################################################
59+
60+
- repo: https://github.com/pre-commit/mirrors-clang-format
61+
rev: v20.1.5
62+
hooks:
63+
- id: clang-format

0 commit comments

Comments
 (0)