aboutsummaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorGunes Bayir <gunes.bayir@arm.com>2023-08-11 21:46:23 +0100
committerGunes Bayir <gunes.bayir@arm.com>2023-08-16 08:26:50 +0000
commitead57c231bc8835506ccd44b9d61baf0897bc9e5 (patch)
treeb5cba557c3d36015401392861ccdc09a1a08d730 /.pre-commit-config.yaml
parentf62eacd29da2fa78eef055ecab03e0a6f0287d75 (diff)
downloadComputeLibrary-ead57c231bc8835506ccd44b9d61baf0897bc9e5.tar.gz
Add header guard check script in Acl
Add a python script to check and fix header guards. It also enables this check in pre-commit. Change-Id: I4cad8ae5e88478eb6f1307a12a8be34dfed4b1ec Signed-off-by: Gunes Bayir <gunes.bayir@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10140 Reviewed-by: Jakub Sujak <jakub.sujak@arm.com> Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Benchmark: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c003d1cc94..9f3ae3709a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -32,6 +32,18 @@ repos:
language: python
entry: python ./scripts/generate_build_files.py --bazel
pass_filenames: false
+ - id: fix-header-guards-ckw
+ name: Fix header guards in CKW
+ stages: [commit]
+ language: python
+ entry: python ./scripts/check_header_guards.py --extensions=h,hpp,inl --comment_style=double_slash --prefix=CKW --include=compute_kernel_writer/ --add_extension --drop_outermost_subdir
+ pass_filenames: true
+ - id: fix-header-guards-acl
+ name: Fix header guards in ACL
+ stages: [commit]
+ language: python
+ entry: python ./scripts/check_header_guards.py --extensions=h,hpp,inl --comment_style=double_slash --prefix=ACL --exclude=compute_kernel_writer/,src/core/NEON/kernels/convolution/,src/core/NEON/kernels/arm_gemm/,src/core/NEON/kernels/arm_conv/,include/ --add_extension
+ pass_filenames: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks: