-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
40 lines (40 loc) · 1.29 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
fail_fast: true
repos:
- repo: local
hooks:
- id: format
name: Run cargo format
entry: cargo +nightly fmt --check
language: system
pass_filenames: false
stages: [commit, push, manual]
- id: clippy
name: Run cargo clippy
entry: cargo clippy --no-deps --all-targets
language: system
pass_filenames: false
stages: [commit, push, manual]
- id: nextest
name: Run cargo nextest
entry: cargo nextest run --fail-fast
language: system
pass_filenames: false
stages: [push, manual]
- id: doc
name: Run cargo doc
entry: bash -c 'env RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --document-private-items'
language: system
pass_filenames: false
stages: [push, manual]
- id: build
name: Check WASM compilation
entry: cargo +nightly check --target=wasm32-unknown-unknown --workspace --no-default-features
language: system
pass_filenames: false
stages: [push, manual]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v8.0.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-conventional"]