-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
109 lines (98 loc) · 2.35 KB
/
.pre-commit-config.yaml
File metadata and controls
109 lines (98 loc) · 2.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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
exclude:
glob:
- "*.svg"
- docs/cli.md
- docs/configuration.md
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
priority: 0
- id: check-case-conflict
priority: 0
- id: check-merge-conflict
priority: 0
- id: check-symlinks
priority: 0
- id: check-yaml
priority: 0
- id: check-toml
priority: 0
- id: debug-statements
priority: 0
- id: end-of-file-fixer
priority: 0
- id: mixed-line-ending
priority: 0
- id: detect-private-key
priority: 0
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.25
hooks:
- id: validate-pyproject
priority: 0
- repo: https://github.com/crate-ci/typos
rev: v1.43.1
hooks:
- id: typos
priority: 0
- repo: https://github.com/rhysd/actionlint
rev: v1.7.10
hooks:
- id: actionlint
priority: 0
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.22.0
hooks:
- id: zizmor
priority: 0
- repo: https://github.com/executablebooks/mdformat
rev: 1.0.0
hooks:
- id: mdformat
priority: 1
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt --
language: system
types: [rust]
pass_filenames: false
priority: 1
- id: ty
name: ty
entry: uvx ty check python/
language: system
types: [python]
pass_filenames: false
priority: 2
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.0
hooks:
- id: ruff-check
args: [--fix]
priority: 1
- id: ruff-format
priority: 1
- repo: https://github.com/DevinR528/cargo-sort
rev: v2.0.2
hooks:
- id: cargo-sort
args: ["-g", "-w"]
priority: 1
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.47.0
hooks:
- id: markdownlint-fix
priority: 2
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: cargo-check
args: ["--all-targets", "--all-features"]
priority: 2
- id: clippy
args: ["--all-targets", "--all-features", "--", "-D", "warnings"]
priority: 2