-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
65 lines (58 loc) · 1.6 KB
/
.pre-commit-config.yaml
File metadata and controls
65 lines (58 loc) · 1.6 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
# Pre-commit configuration for Crustty
# Install: pip install pre-commit && pre-commit install
# Run manually: pre-commit run --all-files
repos:
# General file checks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: mixed-line-ending
- id: check-added-large-files
# Markdown formatting
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.42.0
hooks:
- id: markdownlint
args: ['--fix']
# Rust formatting
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt --
language: system
types: [rust]
pass_filenames: false
# Rust linting
- id: cargo-clippy
name: cargo clippy
entry: cargo clippy --all-targets --all-features -- -D warnings
language: system
types: [rust]
pass_filenames: false
# Rust tests
- id: cargo-test
name: cargo test
entry: cargo test --all-features
language: system
types: [rust]
pass_filenames: false
# Check cargo build
- id: cargo-check
name: cargo check
entry: cargo check --all-targets --all-features
language: system
types: [rust]
pass_filenames: false
# Check cargo docs
- id: cargo-doc
name: cargo doc
entry: cargo doc --no-deps --all-features
language: system
types: [rust]
pass_filenames: false