-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
47 lines (42 loc) · 1.64 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
47 lines (42 loc) · 1.64 KB
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
# We ideally want something like: https://github.com/j178/prek/issues/1869
---
default_language_version:
node: system
repos:
- repo: local
hooks:
- id: cargo-doc
name: cargo-doc
language: system
entry: cargo doc --no-deps --document-private-items --package stackable-operator
stages: [pre-commit, pre-merge-commit]
pass_filenames: false
files: \.rs$|Cargo\.(toml|lock)
- id: cargo-doc-no-default-features
name: cargo-doc-no-default-features
language: system
entry: cargo doc --no-deps --no-default-features --document-private-items --package stackable-operator
stages: [pre-commit, pre-merge-commit]
pass_filenames: false
files: \.rs$|Cargo\.(toml|lock)
- id: cargo-doc-all-features
name: cargo-doc-all-features
language: system
entry: cargo doc --no-deps --all-features --document-private-items --package stackable-operator
stages: [pre-commit, pre-merge-commit]
pass_filenames: false
files: \.rs$|Cargo\.(toml|lock)
- id: cargo-test-no-default-features
name: cargo-test-no-default-features
language: system
entry: cargo test --no-default-features --package stackable-operator
stages: [pre-commit, pre-merge-commit]
pass_filenames: false
files: .*\.rs$|Cargo\.toml
- id: cargo-test-all-features
name: cargo-test-no-default-features
language: system
entry: cargo test --all-features --package stackable-operator
stages: [pre-commit, pre-merge-commit]
pass_filenames: false
files: .*\.rs$|Cargo\.toml