From da4cae24a192a5a507d74e98a0e27e172d54ce3b Mon Sep 17 00:00:00 2001 From: Arav Agarwal Date: Tue, 19 May 2026 14:32:54 -0400 Subject: [PATCH] Initial pre-commit for formatting --- .pre-commit-config.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000000..a63730e142 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,19 @@ +repos: + - repo: https://github.com/pre-commit/mirrors-autopep8 + rev: v2.0.4 + hooks: + - id: autopep8 + args: ['--in-place', '-a', '--max-line-length', '79'] + exclude: 'tools/submission/power/power_checker\.py' + + - repo: https://github.com/pre-commit/mirrors-clang-format + rev: v22.1.5 + hooks: + - id: clang-format + args: ['--style=file'] + types_or: [c, c++] + + - repo: https://github.com/gitleaks/gitleaks + rev: v8.30.0 + hooks: + - id: gitleaks