From: Dmitry Misharov Date: Thu, 4 Sep 2025 09:08:13 +0000 (+0200) Subject: add config file for pre-commit hooks framework X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6cd7b9388f01c0877082420480ed8771fb3eed28;p=thirdparty%2Fopenssl.git 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ý Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/28436) --- diff --git a/.pre-commit-config.yml b/.pre-commit-config.yml new file mode 100644 index 00000000000..8bf782888a5 --- /dev/null +++ b/.pre-commit-config.yml @@ -0,0 +1,8 @@ +ci: + autofix_prs: false +repos: + - repo: "https://github.com/pre-commit/mirrors-clang-format" + rev: "v21.1.0" + hooks: + - id: "clang-format" + types_or: ["c"]