aboutsummaryrefslogtreecommitdiff
path: root/scripts/format_doxygen.py
diff options
context:
space:
mode:
authorGunes Bayir <gunes.bayir@arm.com>2023-07-01 22:55:42 +0100
committerGunes Bayir <gunes.bayir@arm.com>2023-08-08 14:23:35 +0000
commit66b4a6a8ca1ee55e5b7f05bae2543cf99fe22d6d (patch)
treea11e009e6fc742df0fd4551fd7c545325210a07d /scripts/format_doxygen.py
parentf77b969d3375f412ff236586d2b6eb2297c6b96d (diff)
downloadComputeLibrary-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 'scripts/format_doxygen.py')
-rwxr-xr-xscripts/format_doxygen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/format_doxygen.py b/scripts/format_doxygen.py
index 5882958fc5..8ac5e630b9 100755
--- a/scripts/format_doxygen.py
+++ b/scripts/format_doxygen.py
@@ -81,7 +81,7 @@ def process_comment(fd, comment, first_param, last_param):
if __name__ == "__main__":
n_file=0
- if len(sys.argv) == 1:
+ if len(sys.argv) == 2 and sys.argv[1] == '--all':
paths = []
for top_level in ["./arm_compute", "./src", "./examples", "./tests", "./utils", "./framework", "./support"]: