forked from Chia-Network/chia_rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
52 lines (52 loc) · 1.64 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
52
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: check-added-large-files
- repo: local
hooks:
- id: fmt
name: fmt
description: run cargo fmt on the workspace
entry: cargo fmt --all -- --color always
language: system
pass_filenames: false
- id: clippy
name: clippy
description: run cargo clippy on the workspace
stages: [pre-push]
entry: cargo clippy --workspace --all-features -- -Dwarnings
language: system
pass_filenames: false
- id: build
name: build
description: run cargo build on the workspace
stages: [pre-push]
entry: cargo build --all-features --workspace
language: system
pass_filenames: false
- id: benchmarks
name: build benchmarks
description: run cargo bench on the workspace
stages: [pre-push]
entry: cargo bench --no-run --workspace --profile dev
language: system
pass_filenames: false
- id: tests
name: run tests
description: run cargo test on the workspace
stages: [pre-push]
entry: cargo test --workspace
language: system
pass_filenames: false
- id: wheel
name: build wheel
description: run maturin develop on the wheel
stages: [pre-push]
entry: sh -c "cd wheel && maturin develop"
language: system
pass_filenames: false