-
Notifications
You must be signed in to change notification settings - Fork 200
/
.pre-commit-config.yaml
51 lines (51 loc) · 1.45 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
repos:
- repo: https://github.com/Narsil/pre-commit-rust
rev: 0c016cee78144d06d906fccc7715d607a946ca5c
hooks:
- id: fmt
name: "Rust (fmt)"
args: ["--manifest-path", "safetensors/Cargo.toml", "--"]
- id: clippy
name: "Rust (clippy)"
args:
[
"--manifest-path",
"safetensors/Cargo.toml",
"--all-features",
"--all-targets",
"--",
"-Dwarnings",
]
- repo: https://github.com/Narsil/pre-commit-rust
rev: 0c016cee78144d06d906fccc7715d607a946ca5c
hooks:
- id: fmt
name: "Python (fmt)"
args: ["--manifest-path", "bindings/python/Cargo.toml", "--"]
- id: clippy
name: "Python (clippy)"
args:
[
"--manifest-path",
"bindings/python/Cargo.toml",
"--all-features",
"--all-targets",
"--",
"-Dwarnings",
]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
name: "Python (black)"
args: ["--line-length", "119", "--target-version", "py35"]
types: ["python"]
- repo: https://github.com/pycqa/flake8
rev: 3.8.3
hooks:
- id: flake8
args: ["--config", "bindings/python/setup.cfg"]
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.7.0 # Use the revision sha / tag you want to point at
hooks:
- id: isort