-
Notifications
You must be signed in to change notification settings - Fork 26
/
.pre-commit-config.yaml
50 lines (50 loc) · 1.53 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
# 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: prettier
name: Prettier
entry: npx prettier --write
language: node
files: \.(js|jsx|ts|tsx|json|css|scss|md|yml|yaml)$
types: [file]
- 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 --all-targets
language: system
pass_filenames: false
- id: machete
name: machete
description: run cargo machete on the workspace
entry: cargo machete
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