-
Notifications
You must be signed in to change notification settings - Fork 51
/
.pre-commit-config.yaml
90 lines (80 loc) · 2.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
repos:
- repo: local
hooks:
- id: lint_nucliadb
name: Lint nucliadb
entry: make -C nucliadb lint
language: system
files: (^nucliadb/)
types: ["python"]
pass_filenames: false
- id: lint_nucliadb_dataset
name: Lint nucliadb_dataset
entry: make -C nucliadb_dataset lint
language: system
files: (^nucliadb_dataset/)
types: ["python"]
pass_filenames: false
- id: lint_nucliadb_models
name: Lint nucliadb_models
entry: make -C nucliadb_models lint
language: system
files: (^nucliadb_models/)
types: ["python"]
pass_filenames: false
- id: lint_nucliadb_node
name: Lint nucliadb_node
entry: make -C nucliadb_node lint
language: system
files: (^nucliadb_node/)
types: ["python"]
pass_filenames: false
- id: lint_nucliadb_node_binding
name: Lint nucliadb_node_binding
entry: make -C nucliadb_node_binding lint
language: system
files: (^nucliadb_node_binding/)
types: ["python"]
pass_filenames: false
- id: lint_nucliadb_performance
name: Lint nucliadb_performance
entry: make -C nucliadb_performance lint
language: system
files: (^nucliadb_performance/)
types: ["python"]
pass_filenames: false
- id: lint_nucliadb_sdk
name: Lint nucliadb_sdk
entry: make -C nucliadb_sdk lint
language: system
files: (^nucliadb_sdk/)
types: ["python"]
pass_filenames: false
- id: lint_nucliadb_telemetry
name: Lint nucliadb_telemetry
entry: make -C nucliadb_telemetry lint
language: system
files: (^nucliadb_telemetry/)
types: ["python"]
pass_filenames: false
- id: lint_nucliadb_utils
name: Lint nucliadb_utils
entry: make -C nucliadb_utils lint
language: system
files: (^nucliadb_utils/)
types: ["python"]
pass_filenames: false
- id: rustfmt_nucliadb
name: fmt
entry: cargo fmt --check
language: system
files: (^nucliadb_vectors*/)|(^nucliadb_node*/)|(^nucliadb_paragraphs*/)|(^nucliadb_texts*/)|(^nucliadb_relations*/)
types: ["rust"]
pass_filenames: false
- id: clippy_nucliadb
name: clippy
entry: cargo clippy --all-features -- -D warnings
language: system
files: (^nucliadb_vectors*/)|(^nucliadb_node*/)|(^nucliadb_paragraphs*/)|(^nucliadb_texts*/)|(^nucliadb_relations*/)
types: ["rust"]
pass_filenames: false