forked from nuclia/nucliadb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
39 lines (35 loc) · 1.42 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
repos:
- repo: local
hooks:
- id: isort_nucliadb
name: Isort
entry: isort --profile black -c
language: system
files: (^nucliadb_utils/)|(^nucliadb_node/)|(^nucliadb_telemetry/)|(^nucliadb_dataset/)|(^nucliadb_sdk/)|(^nucliadb_models/)|(^nucliadb/)
types: ["python"]
- id: black_nucliadb
name: Black
entry: black --check --verbose
language: system
files: (^nucliadb_utils/)|(^nucliadb_node/)|(^nucliadb_telemetry/)|(^nucliadb_dataset/)|(^nucliadb_sdk/)|(^nucliadb_models/)|(^nucliadb/)
types: ["python"]
- id: flake8_nucliadb
name: Flake8
entry: flake8 --config=nucliadb/setup.cfg
language: system
files: (^nucliadb_utils/)|(^nucliadb_node/)|(^nucliadb_telemetry/)|(^nucliadb_dataset/)|(^nucliadb_sdk/)|(^nucliadb_models/)|(^nucliadb/)
types: ["python"]
- id: rustfmt_nucliadb
name: fmt
entry: cargo +nightly fmt --check
language: system
files: (^nucliadb_vectors/)|(^nucliadb_node/)|(^nucliadb_paragraphs/)|(^nucliadb_texts/)
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/)
types: ["rust"]
pass_filenames: false