forked from safetensors/safetensors
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (48 loc) · 1.3 KB
/
.pre-commit-config.yaml
File metadata and controls
48 lines (48 loc) · 1.3 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
48
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-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-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/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.11.11
hooks:
# Run the linter.
- id: ruff-check
# Run the formatter.
- id: ruff-format