blob: c003d1cc94878d0b8c1086de5ba1ab2d27353457 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
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
- 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]
|