-
Notifications
You must be signed in to change notification settings - Fork 196
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
59 lines (52 loc) · 1.55 KB
/
.pre-commit-config.yaml
File metadata and controls
59 lines (52 loc) · 1.55 KB
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: "third_party/"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
exclude: patches/
- id: end-of-file-fixer
exclude: patches/
exclude_types: ["image", "jupyter"]
- id: check-yaml
exclude: patches/
- id: check-json
- id: check-merge-conflict
exclude: patches/
- id: check-added-large-files
- id: mixed-line-ending
- repo: https://github.com/psf/black
rev: 25.11.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v18.1.4'
hooks:
- id: clang-format
- repo: https://github.com/hukkin/mdformat
rev: 0.7.21
hooks:
- id: mdformat
additional_dependencies:
- mdformat-gfm
- mdformat-black
- mdformat-frontmatter
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: forbid-tabs
exclude: ".gitmodules|patches/.*|docs/development/git_chores.md|build_tools/packaging/linux/template/debian_rules.j2"
- repo: https://github.com/rhysd/actionlint
rev: v1.7.10
hooks:
- id: actionlint
args: [-shellcheck=, -ignore, 'label ".+" is unknown']
- repo: local
hooks:
- id: test-file-naming
name: Enforce *_test.py naming for build_tools tests
entry: "Test files must use the *_test.py naming convention, not test_*.py"
language: fail
files: '^build_tools/(.*/)?tests/test_[^/]*\.py$'