-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
38 lines (38 loc) · 959 Bytes
/
.pre-commit-config.yaml
File metadata and controls
38 lines (38 loc) · 959 Bytes
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
exclude: |
(?x)^(
keyvi/3rdparty/.*
)$
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v21.1.2
hooks:
- id: clang-format
exclude: '^(.*/3rdparty/.*)'
- repo: https://github.com/cpplint/cpplint
rev: 2.0.2
hooks:
- id: cpplint
exclude: '^(.*/3rdparty/.*)'
- repo: local
hooks:
- id: cargo-fmt
name: cargo-fmt
entry: cargo fmt --manifest-path rust/Cargo.toml -- --check
language: system
pass_filenames: false
types:
- rust
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
exclude: '^(.*\.svg)$'
- id: trailing-whitespace
exclude: '^(.*\.svg)$'
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.14.0"
hooks:
- id: ruff-check
- id: ruff-format