-
Notifications
You must be signed in to change notification settings - Fork 16
/
.pre-commit-config.yaml
51 lines (51 loc) · 1.22 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
42
43
44
45
46
47
48
49
50
51
---
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
args: [--maxkb=500]
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.32.1
hooks:
- id: markdownlint
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.2
hooks:
- id: yamlfmt
args: [--mapping, '2', --sequence, '2', --offset, '0']
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
- id: cargo-check
- id: clippy
- repo: local
hooks:
- id: execute-tests
name: Compile and execute unit and integration tests for all targets
stages: [commit]
language: system
entry: cargo test
types: [rust]
pass_filenames: false
- id: build-documentation
name: Build documentation
stages: [commit]
language: system
entry: cargo doc
types: [rust]
pass_filenames: false
- id: publish
name: Prepare publishing to crates.io
stages: [push]
language: system
entry: cargo publish -c
pass_filenames: false