forked from Sajjon/RadixWalletKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
48 lines (43 loc) · 1.34 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
repos:
- repo: https://github.com/crate-ci/typos
rev: v1.17.2
hooks:
- id: typos
- repo: local
hooks:
- id: fmt
name: fmt
language: system
types: [file, rust]
entry: cargo fmt -- --check
pass_filenames: false
- id: clippy
name: clippy
language: system
types: [file, rust]
entry: cargo clippy --all -- -D warnings # Use -D warnings option to ensure the job fails when encountering warnings
pass_filenames: false
- id: unit tests
name: unit tests
language: system
types: [file, rust]
entry: cargo test --lib
pass_filenames: false
- id: doc tests
name: doc tests
language: system
types: [file, rust]
entry: cargo test --doc
pass_filenames: false
- id: vectors integration tests
name: vectors integration tests
language: system
types: [file, rust]
entry: cargo test --package profile --test vectors
pass_filenames: false
- id: uniffi bindgen tests
name: uniffi bindgen tests
language: system
types: [file, rust]
entry: bash -c 'exec env CLASSPATH="$PWD/jna-5.13.0.jar"' && bash -c 'exec env JAVA_OPTS="-Xmx8g"' && cargo test --package profile --test uniffi
pass_filenames: false