-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
45 lines (45 loc) · 1.32 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
fail_fast: true
repos:
- repo: local
hooks:
- id: check
name: cargo check
entry: cargo check --
language: system
types: [rust]
pass_filenames: false
- id: fmt
name: rustfmt fmt
entry: rustfmt +nightly --
language: system
types: [rust]
- id: clippy driver
name: cargo clippy (driver)
entry: cargo clippy -p neo4j -- -D warnings
language: system
types: [rust]
pass_filenames: false
- id: clippy all
name: cargo clippy (all)
entry: cargo clippy --all --all-features -- -D warnings
language: system
types: [rust]
pass_filenames: false
- id: unit
name: unit tests
entry: cargo test --workspace --tests --benches --features _internal_public_api
language: system
types: [rust]
pass_filenames: false
- id: dependency type exports
name: check exported dependencies
entry: bash -ec "cd neo4j; cargo +nightly check-external-types"
language: system
types_or: [rust, toml]
pass_filenames: false
- id: docs
name: cargo doc
entry: env RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps
language: system
types: [rust]
pass_filenames: false