-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
50 lines (45 loc) · 1.36 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: f71fa2c1f9cf5cb705f73dffe4b21f7c61470ba9 # frozen: v4.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-yaml
- id: check-json
exclude: "^.vscode/"
- id: end-of-file-fixer
- id: check-case-conflict
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: mixed-line-ending
- id: trailing-whitespace
- repo: local
hooks:
- id: rustfmt
name: Check formatting
entry: cargo fmt --
language: system
files: \.rs$
- id: tests
name: Run tests
entry: cargo test
language: system
files: \.rs$
pass_filenames: false
- id: clippy
name: Run clippy
entry: cargo clippy -- -D warnings
language: system
files: \.rs$
pass_filenames: false
- repo: https://github.com/google/yamlfmt
rev: c433f347693ee3bbbfd4f626e502685dd8aafa82 # frozen: v0.9.0
hooks:
- id: yamlfmt
- repo: https://github.com/codespell-project/codespell
rev: 355e50e14fd03fe83e4ed9aa0489824b150b3b58 # frozen: v2.2.5
hooks:
- id: codespell