blob: c003d1cc94878d0b8c1086de5ba1ab2d27353457 [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
35 - repo: https://github.com/pre-commit/pre-commit-hooks
36 rev: v4.4.0
37 hooks:
Georgios Pinitasa7171102021-08-17 12:54:59 +010038 - id: end-of-file-fixer
39 stages: [commit]
Georgios Pinitasa7171102021-08-17 12:54:59 +010040 - id: trailing-whitespace
41 stages: [commit]
42 - id: mixed-line-ending
43 args: ['--fix=lf']
44 description: Forces to replace line ending by the UNIX 'lf' character.
Georgios Pinitasa7171102021-08-17 12:54:59 +010045 - id: check-added-large-files
46 args: ['--maxkb=100']
47 stages: [commit]