diff options
author | Gunes Bayir <gunes.bayir@arm.com> | 2023-07-01 22:55:42 +0100 |
---|---|---|
committer | Gunes Bayir <gunes.bayir@arm.com> | 2023-08-08 14:23:35 +0000 |
commit | 66b4a6a8ca1ee55e5b7f05bae2543cf99fe22d6d (patch) | |
tree | a11e009e6fc742df0fd4551fd7c545325210a07d /src | |
parent | f77b969d3375f412ff236586d2b6eb2297c6b96d (diff) | |
download | ComputeLibrary-66b4a6a8ca1ee55e5b7f05bae2543cf99fe22d6d.tar.gz |
Setup pre-commit and include code formatting scripts
This patch
- includes our code formatting scripts used in our precommit pipeline
- sets up pre-commit framework to help contributors validate their patches
This has several benefits:
- our repository becomes more inclusive to external contributions
- we can use several hooks available online efficiently, w/o implementing our own
- it speeds up our development flow
and, it is completely optional.
The pre-commit configuration includes running the following:
- our code formatting scripts
- CMake and Bazel build file generation scripts
- hooks that check trailing whitespace, end of files, committed large files etc.
The number of checks can easily be extended using pre-commit framework.
Change-Id: I06bf1259715579d321f89820726a8301504c36d9
Signed-off-by: Gunes Bayir <gunes.bayir@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10064
Reviewed-by: Jakub Sujak <jakub.sujak@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/BUILD.bazel | 2 | ||||
-rw-r--r-- | src/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/BUILD.bazel b/src/BUILD.bazel index ca90107a5c..7995bb5736 100644 --- a/src/BUILD.bazel +++ b/src/BUILD.bazel @@ -652,6 +652,7 @@ filegroup( "core/utils/FormatUtils.cpp", "core/utils/InterpolationPolicyUtils.cpp", "core/utils/ScaleUtils.cpp", + "core/utils/StringUtils.cpp", "core/utils/helpers/fft.cpp", "core/utils/helpers/tensor_transform.cpp", "core/utils/io/FileHandler.cpp", @@ -661,7 +662,6 @@ filegroup( "core/utils/logging/LoggerRegistry.cpp", "core/utils/misc/MMappedFile.cpp", "core/utils/quantization/AsymmHelpers.cpp", - "core/utils/StringUtils.cpp", "cpu/CpuContext.cpp", "cpu/CpuQueue.cpp", "cpu/CpuTensor.cpp", diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 20379dd5f4..4ce3d3c2df 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -981,4 +981,4 @@ target_sources( runtime/Tensor.cpp runtime/TensorAllocator.cpp runtime/Utils.cpp -) +)
\ No newline at end of file |