-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
40 lines (36 loc) · 1.02 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
40 lines (36 loc) · 1.02 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
# Pre-commit configuration for ralph-md
# Install with: pre-commit install
# Install pre-commit with: pip install pre-commit
repos:
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: cargo-check
args: ['--all-targets', '--all-features']
- id: clippy
args: ['--all-targets', '--all-features', '--', '-D', 'warnings']
- id: rustfmt
- 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: check-added-large-files
args: ['--maxkb=1000']
- repo: local
hooks:
- id: cargo-test
name: cargo test
entry: cargo test
language: system
pass_filenames: false
always_run: true
- id: cargo-audit
name: cargo audit
entry: cargo audit
language: system
pass_filenames: false
always_run: true