-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
41 lines (37 loc) · 1.03 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: detect-private-key
- id: mixed-line-ending
- id: pretty-format-json
args: ['--autofix']
- id: check-case-conflict
- id: check-executables-have-shebangs
- repo: https://github.com/doublify/pre-commit-rust
rev: 'eeee35a'
hooks:
- id: fmt
- id: clippy
name: Rust clippy
entry: bash -c 'cargo clippy --all-targets --all-features -- -Dclippy::all'
pass_filenames: false
types: [file, rust]
language: system
- repo: local
hooks:
- id: run-tests
name: Run Tests
entry: bash -c 'cargo test --all'
language: system
types: [file, rust]
pass_filenames: false
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: 'v0.32.2'
hooks:
- id: markdownlint-fix
args: ['--fix']