-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
58 lines (54 loc) · 1.35 KB
/
.pre-commit-config.yaml
File metadata and controls
58 lines (54 loc) · 1.35 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
49
50
51
52
53
54
55
56
57
58
exclude: '^(\.tox|\.env|dist|\.vscode)(/|$)'
repos:
- repo: local
hooks:
- id: rustfmt
name: rustfmt
entry: cargo fmt -- --check
language: system
types: [rust]
pass_filenames: false
- id: clippy
name: clippy
entry: cargo clippy -- -D warnings
language: system
types: [rust]
pass_filenames: false
- repo: https://github.com/Argmaster/autocopyright
rev: "v1.1.0"
hooks:
- id: autocopyright
args:
[
-s,
"//",
-d,
cssfinder_backend_numpy,
-d,
src,
-g,
"*.rs",
-l,
"./scripts/templates/MIT.md.jinja2",
]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1"
hooks:
- id: prettier
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.4.0"
hooks:
- id: check-merge-conflict
args: [--assume-in-merge]
- id: check-case-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: debug-statements
- id: check-added-large-files
args: ["--maxkb=2000"]
- id: check-toml
# - id: check-json
- id: mixed-line-ending
args: ["--fix=lf"]
- id: trailing-whitespace
- id: debug-statements