Skip to content

Commit 6cd7b93

Browse files
quarckstert8m
authored andcommitted
add config file for pre-commit hooks framework
pre-commit helps managing and maintaining multi-language pre-commit hooks. This commit adds a pre-commit configuration to run a certian version of clang-format utility. Later we can add sections for other languages as well. pre-commit developers also provide the CI system which uses the same config file. https://pre-commit.com/ https://pre-commit.ci/ Reviewed-by: Saša Nedvědický <sashan@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org> (Merged from openssl#28436)
1 parent 512f176 commit 6cd7b93

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.pre-commit-config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ci:
2+
autofix_prs: false
3+
repos:
4+
- repo: "https://github.com/pre-commit/mirrors-clang-format"
5+
rev: "v21.1.0"
6+
hooks:
7+
- id: "clang-format"
8+
types_or: ["c"]

0 commit comments

Comments
 (0)