-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
86 lines (77 loc) · 2.09 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
86 lines (77 loc) · 2.09 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
---
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
# These will modify code
- id: trailing-whitespace
- id: end-of-file-fixer
- id: fix-byte-order-marker
# These will verify only
- id: check-yaml
- id: check-json
- id: check-xml
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-illegal-windows-names
- id: check-merge-conflict
- id: check-symlinks
- id: destroyed-symlinks
- id: check-vcs-permalinks
- id: forbid-submodules
- repo: https://github.com/thoughtworks/talisman
rev: v1.37.0
hooks:
- id: talisman-push
- id: talisman-commit
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.16.4
hooks:
- id: commitizen
- repo: local
hooks:
- id: cargo-nextest
name: Cargo Nextest
entry: cargo nextest run
pass_filenames: false
language: system
types: [rust]
stages: [pre-commit]
- id: cargo-check
name: Cargo Check
entry: cargo check
pass_filenames: false
language: system
types: [rust]
stages: [pre-commit]
- id: cargo-clippy
name: Cargo Clippy (with warnings)
entry: cargo clippy -- -D warnings
pass_filenames: false
language: system
types: [rust]
stages: [pre-commit]
- id: cargo-fmt-check
name: Cargo Format (check)
entry: cargo fmt -- --check
pass_filenames: false
language: system
types: [rust]
stages: [pre-commit]
- id: cargo-clippy-fix
name: Cargo Clippy
entry: cargo clippy --fix
pass_filenames: false
language: system
types: [rust]
stages: [pre-push]
- id: cargo-fmt
name: Cargo Format
entry: cargo fmt
pass_filenames: false
language: system
types: [rust]
stages: [pre-push]