blob: 9f3ae3709af39ce1b4d31090ce3c0bded8333c47 [file] [log] [blame]
Georgios Pinitasa7171102021-08-17 12:54:59 +01001fail_fast: false
2
Gunes Bayir66b4a6a2023-07-01 22:55:42 +01003exclude: ^(data|include)/.*
4exclude: |
5 (?x)^(
6 data/.*|
7 include/.*|
8 src/CMakeLists.txt|
9 src/Bazel.build|
10 Android.bp
11 )$
12
Georgios Pinitasa7171102021-08-17 12:54:59 +010013repos:
Gunes Bayir66b4a6a2023-07-01 22:55:42 +010014 - repo: local
Georgios Pinitasa7171102021-08-17 12:54:59 +010015 hooks:
Gunes Bayir66b4a6a2023-07-01 22:55:42 +010016 - id: format-code
17 name: ACL Format Code Script
Georgios Pinitasa7171102021-08-17 12:54:59 +010018 stages: [commit]
Gunes Bayir66b4a6a2023-07-01 22:55:42 +010019 language: python
20 entry: python ./scripts/format_code.py --files=git-diff
21 pass_filenames: false
22 additional_dependencies: ['psutil==5.8.0', 'Jinja2==3.0.1']
23 - id: prepare-cmake-build-files
24 name: Prepare CMake build files
Georgios Pinitasa7171102021-08-17 12:54:59 +010025 stages: [commit]
Gunes Bayir66b4a6a2023-07-01 22:55:42 +010026 language: python
27 entry: python ./scripts/generate_build_files.py --cmake
28 pass_filenames: false
29 - id: prepare-bazel-build-files
30 name: Prepare Bazel build files
31 stages: [commit]
32 language: python
33 entry: python ./scripts/generate_build_files.py --bazel
34 pass_filenames: false
Gunes Bayiread57c22023-08-11 21:46:23 +010035 - id: fix-header-guards-ckw
36 name: Fix header guards in CKW
37 stages: [commit]
38 language: python
39 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
40 pass_filenames: true
41 - id: fix-header-guards-acl
42 name: Fix header guards in ACL
43 stages: [commit]
44 language: python
45 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
46 pass_filenames: true
Gunes Bayir66b4a6a2023-07-01 22:55:42 +010047 - repo: https://github.com/pre-commit/pre-commit-hooks
48 rev: v4.4.0
49 hooks:
Georgios Pinitasa7171102021-08-17 12:54:59 +010050 - id: end-of-file-fixer
51 stages: [commit]
Georgios Pinitasa7171102021-08-17 12:54:59 +010052 - id: trailing-whitespace
53 stages: [commit]
54 - id: mixed-line-ending
55 args: ['--fix=lf']
56 description: Forces to replace line ending by the UNIX 'lf' character.
Georgios Pinitasa7171102021-08-17 12:54:59 +010057 - id: check-added-large-files
58 args: ['--maxkb=100']
59 stages: [commit]