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 |
| 35 | - repo: https://github.com/pre-commit/pre-commit-hooks |
| 36 | rev: v4.4.0 |
| 37 | hooks: |
Georgios Pinitas | a717110 | 2021-08-17 12:54:59 +0100 | [diff] [blame] | 38 | - id: end-of-file-fixer |
| 39 | stages: [commit] |
Georgios Pinitas | a717110 | 2021-08-17 12:54:59 +0100 | [diff] [blame] | 40 | - 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 Pinitas | a717110 | 2021-08-17 12:54:59 +0100 | [diff] [blame] | 45 | - id: check-added-large-files |
| 46 | args: ['--maxkb=100'] |
| 47 | stages: [commit] |