-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
49 lines (46 loc) · 1.33 KB
/
.pre-commit-config.yaml
File metadata and controls
49 lines (46 loc) · 1.33 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
repos:
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt --all -- --check
language: system
types: [rust]
pass_filenames: false
- id: cargo-check
name: cargo check
entry: cargo check --all
language: system
types: [rust]
pass_filenames: false
- id: cargo-clippy
name: cargo clippy
entry: cargo clippy --all-targets --all-features -- -D warnings
language: system
types: [rust]
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
name: Fix trailing whitespace
- id: end-of-file-fixer
name: Fix end of file
- id: check-yaml
name: Check YAML syntax
- id: check-toml
name: Check TOML syntax
- id: check-json
name: Check JSON syntax
- id: check-merge-conflict
name: Check for merge conflict markers
- id: check-added-large-files
name: Check for large files
args: ['--maxkb=500']
- id: mixed-line-ending
name: Check for mixed line endings
args: ['--fix=lf']
- id: check-case-conflict
name: Check for case conflicts
- id: check-symlinks
name: Check for broken symlinks