Georgios Pinitas | a717110 | 2021-08-17 12:54:59 +0100 | [diff] [blame] | 1 | fail_fast: false |
| 2 | |
Gunes Bayir | 66b4a6a | 2023-07-01 22:55:42 +0100 | [diff] [blame] | 3 | exclude: ^(data|include)/.* |
| 4 | exclude: | |
| 5 | (?x)^( |
| 6 | data/.*| |
| 7 | include/.*| |
| 8 | src/CMakeLists.txt| |
| 9 | src/Bazel.build| |
| 10 | Android.bp |
| 11 | )$ |
| 12 | |
Georgios Pinitas | a717110 | 2021-08-17 12:54:59 +0100 | [diff] [blame] | 13 | repos: |
Gunes Bayir | 66b4a6a | 2023-07-01 22:55:42 +0100 | [diff] [blame] | 14 | - repo: local |
Georgios Pinitas | a717110 | 2021-08-17 12:54:59 +0100 | [diff] [blame] | 15 | hooks: |
Gunes Bayir | 66b4a6a | 2023-07-01 22:55:42 +0100 | [diff] [blame] | 16 | - id: format-code |
| 17 | name: ACL Format Code Script |
Georgios Pinitas | a717110 | 2021-08-17 12:54:59 +0100 | [diff] [blame] | 18 | stages: [commit] |
Gunes Bayir | 66b4a6a | 2023-07-01 22:55:42 +0100 | [diff] [blame] | 19 | 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 Pinitas | a717110 | 2021-08-17 12:54:59 +0100 | [diff] [blame] | 25 | stages: [commit] |
Gunes Bayir | 66b4a6a | 2023-07-01 22:55:42 +0100 | [diff] [blame] | 26 | 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 Bayir | ead57c2 | 2023-08-11 21:46:23 +0100 | [diff] [blame^] | 35 | - 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 Bayir | 66b4a6a | 2023-07-01 22:55:42 +0100 | [diff] [blame] | 47 | - repo: https://github.com/pre-commit/pre-commit-hooks |
| 48 | rev: v4.4.0 |
| 49 | hooks: |
Georgios Pinitas | a717110 | 2021-08-17 12:54:59 +0100 | [diff] [blame] | 50 | - id: end-of-file-fixer |
| 51 | stages: [commit] |
Georgios Pinitas | a717110 | 2021-08-17 12:54:59 +0100 | [diff] [blame] | 52 | - 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 Pinitas | a717110 | 2021-08-17 12:54:59 +0100 | [diff] [blame] | 57 | - id: check-added-large-files |
| 58 | args: ['--maxkb=100'] |
| 59 | stages: [commit] |