fail_fast: false exclude: ^(data|include)/.* exclude: | (?x)^( data/.*| include/.*| src/CMakeLists.txt| src/Bazel.build| Android.bp )$ repos: - repo: local hooks: - id: format-code name: ACL Format Code Script stages: [commit] language: python entry: python ./scripts/format_code.py --files=git-diff pass_filenames: false additional_dependencies: ['psutil==5.8.0', 'Jinja2==3.0.1'] - id: prepare-cmake-build-files name: Prepare CMake build files stages: [commit] language: python entry: python ./scripts/generate_build_files.py --cmake pass_filenames: false - id: prepare-bazel-build-files name: Prepare Bazel build files stages: [commit] 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: - id: end-of-file-fixer stages: [commit] - id: trailing-whitespace stages: [commit] - id: mixed-line-ending args: ['--fix=lf'] description: Forces to replace line ending by the UNIX 'lf' character. - id: check-added-large-files args: ['--maxkb=100'] stages: [commit]