forked from bazelbuild/rules_rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
40 lines (40 loc) · 1.04 KB
/
.pre-commit-config.yaml
File metadata and controls
40 lines (40 loc) · 1.04 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
default_stages: [pre-commit]
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/Warchant/pre-commit-buildifier
rev: 0.1.5
hooks:
- id: buildifier
args: [--version, "v8.5.1"]
- id: buildifier-lint
args: [--version, "v8.5.1", --warnings=all]
- repo: https://github.com/crate-ci/typos
rev: v1.38.1
hooks:
- id: typos
exclude: |
(?x)^(
crate_universe/test_data
)
exclude_types:
- diff
- repo: https://github.com/psf/black
rev: 25.9.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 7.0.0
hooks:
- id: isort
args: [--profile, black]
- repo: https://github.com/pre-commit/mirrors-clang-format
# See supported types: https://github.com/pre-commit/mirrors-clang-format/blob/v14.0.6/.pre-commit-hooks.yaml#L6
rev: v21.1.2
hooks:
- id: clang-format
exclude_types:
- json
- javascript