-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.pre-commit-config.yaml
69 lines (66 loc) · 1.91 KB
/
.pre-commit-config.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
default_language_version:
python: python3.10
node: 18.16.0
default_stages: [commit]
exclude: (.*\.patch)
repos:
- repo: https://github.com/keith/pre-commit-buildifier
rev: 7.3.1
hooks:
- id: buildifier
args:
- &buildifier_args "--warnings=native-cc,native-py"
- id: buildifier
name: "buildifier (external build files)"
files: &buildifier_external_files ^(.*/)?\w+\.BUILD.bazel$
args: &buildifier_external_args
- *buildifier_args
- --type=build
- id: buildifier-lint
args:
- *buildifier_args
- id: buildifier-lint
name: "buildifier-lint (external build files)"
files: *buildifier_external_files
args: *buildifier_external_args
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-merge-conflict
- id: check-yaml
- id: debug-statements
- id: double-quote-string-fixer
types: [python]
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/google/yapf
rev: v0.43.0
hooks:
- id: yapf
args: [-i, --style, .style.yapf]
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.14.0
hooks:
- id: reorder-python-imports
args: [--py37-plus]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.1
hooks:
- id: ruff
args: [--fix, --show-fixes, --exit-non-zero-on-fix]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.4
hooks:
- id: clang-format
exclude_types: [json]
- repo: https://github.com/cpplint/cpplint
rev: 2.0.0
hooks:
- id: cpplint
args: ["--filter=-build/c++11,-build/c++14"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier